ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

TPX Batch Administration; User Session report

book

Article ID: 241592

calendar_today

Updated On:

Products

TPX - Session Management

Issue/Introduction

 A report is needed showing ALL users who have a particular session, how would this be written?

Environment

Release : 5.4

Component : TPX for z/OS

Resolution

 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),
//      DCB=(RECFM=FB,LRECL=400,BLKSIZE=15000,DSORG=PS),
//      UNIT=SYSDA,SPACE=(CYL,(10,1))
//RPTFILE DD DSN=userxx.TPX.BRPT2,DISP=(,CATLG,KEEP),
//      DCB=(RECFM=FB,LRECL=80,BLKSIZE=3120,DSORG=PS),
//      UNIT=SYSDA,SPACE=(CYL,(10,1))
//SYSIN DD *
C
C  ALL USERS STARTING WITH A CERTAIN SESSION (UENTUSER)
C
EXTRACT GIVING(EXTFILE) USER AND MATCHING SESSIONS (UIDXNAME(-------)   
    UENTUSER(TSO1))
SET RTITLE1 '    USERNAME    SESS-ID    APPLID      '
SET RTITLE2 '    ========   ========   =========    '
REPORT GIVING(RPTFILE) USING(EXTFILE)
((  '    &UIDXNAME' '   &UENTUSER' '  &UENTAPPL' '  '))  <<< there are many other fields available

 

 

Additional Information

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.