TPX Batch - example - When did users last logon?

Document ID : KB000051750
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

This batch report will show you all users and their last logon date.

Solution:

This batch job will list all your users and the last logon date.

A blank date indicates that the user has never logged on.

//BATCHADM EXEC TPX,VNODE='*BATCH*'
//EXTFILE DD UNIT=SYSDA,SPACE=(CYL,(1,1)),DISP=(MOD)
//RPTFILE DD SYSOUT=*
//SYSIN DD *
C
C List all users and the date they last logged on.
C
C VUSRDACC The date on which the user last signed on to CA TPX.
C
EXTRACT GIVING(EXTFILE) USER AND NO SESSIONS (UIDXNAME(--------))
SET RTITLE1
' USERID LAST TPX LOGON'
SET RTITLE2
' ======== =============='
REPORT GIVING(RPTFILE) USING(EXTFILE)
(( ' &UIDXNAME' ' &VUSRDACC '))