A report is needed showing ALL users who have a particular session, how would this be written?
Release : 5.4
Component : TPX for z/OS
Example Report JCL, looking for users with a session called 'TSO1'.
//BATCHADM EXEC tpxproc,VNODE='*BATCH*'
//*EXTFILE DD UNIT=SYSDA,SPACE=(CYL,(3,1)),DISP=(MOD)
//*RPTFILE DD SYSOUT=*
//EXTFILE DD DSN=userxx.TPX.BEXT2,DISP=(,CATLG,KEEP),
//RPTFILE DD DSN=userxx.TPX.BRPT2,DISP=(,CATLG,KEEP),
//SYSIN DD *
C ALL USERS STARTING WITH A CERTAIN SESSION (UENTUSER)
EXTRACT GIVING(EXTFILE) USER AND MATCHING SESSIONS (UIDXNAME(-------)
SET RTITLE1 ' USERNAME SESS-ID APPLID '
SET RTITLE2 ' ======== ======== ========= '
REPORT GIVING(RPTFILE) USING(EXTFILE)
(( ' &UIDXNAME' ' &UENTUSER' ' &UENTAPPL' ' ')) <<< there are many other fields available
1. (UIDXNAME(-------) << masking to get ALL users, this can also be used as a wildcard (UIDXNAME(US1----) << users starting with 'US1'.
2. Initially let the extract and report files go to SYSOUT, when the report is as needed, write the report to a file (as needed).
3. See the field names for the various reports under 'Batch Variables' in the documentation. In this case it would be:
TPX User Session Variables (by Variable Name)
4. The TPX hilvl.CB0VSRC has a member $BATADM with the examples in the dataset.