The following TPXBATCH-Job creates a list of users, their sessions and the content of field "ACB Mask" for each session:
//<jobcard>
//STEP1 EXEC <name_of_tpx>,VNODE='*BATCH*'
//EXTFILE DD DSN='aaa.bbb.ccc',DISP=SHR
//RPTFILE DD SYSOUT=*
//SYSIN DD *
EXTRACT GIVING(EXTFILE) USER AND ALL SESSIONS (UIDXNAME(--------))
SET RTITLE1 ' USER - USERSESS - ACB MASK '
SET RTITLE2 ' ==============================='
REPORT GIVING(RPTFILE) USING(EXTFILE)
((' &UIDXNAME' '-' ' &UENTUSER' '-' ' &UENTACB '))
Take care to
a) specify 'aaa.bbb.ccc' as a dataset defined with FB and LRECL=2000 to be able to save the extraced record of ADMIN2.
b) You might specify a file with FB and LRECL=80 instead of SYSOUT=* for the RPTFILE where the result is stored
Here is the resulting list. The third column contains the name of the ACB Mask if one is specified for that session of the user.
USER - USERSESS - ACB MASK
===============================
BIR01 - -
- CICS1 - CICSMASK
- CICS2 - CICSMASK
FRA01 - -
- CICS1 - CICSMASK
- NMTIP12 -
- STAR -
- TPXADMIN -
- TPXDEMO -
- TPXMAIL -
- TPXNOTES -
- TSO - TSO1
STE01 - -
- CICS1 - CICSMASK
- NMTIP12 -
- STAR -
If you do not want to get the complete list (which might be huge) you can influence that by specifying
EXTRACT GIVING(EXTFILE) USER AND ALL SESSIONS (UIDXNAME(A-------))
or
EXTRACT GIVING(EXTFILE) USER AND ALL SESSIONS (UIDXNAME(DE------))