To get a list of all users who have TPX User Administrator Capability you need to check flag UIDXCADM on 'Y' in UINDEX from the TPXBATCH job
//.... JOB .....
//BATCHADM EXEC name_of_TPX,VNODE='*BATCH*'
//EXTFILE DD UNIT=SYSDA,SPACE=(CYL,(5,1))
//RPTFILE DD SYSOUT=*
//SYSIN DD *
EXTRACT GIVING(EXTFILE) USER AND NO SESSIONS (UIDXCADM(Y))
' USER ADMINISTRATORS WITH GROUPS THEY CAN ADMINISTER'
' USERID TPX GROUPS'
' ======== ========'
REPORT GIVING(RPTFILE) USING(EXTFILE)
((' &UIDXNAME ' '&VUSR$MAG '))
Variable &VUSR$MAG contains all TPX group names the administrator can administer in form of a string.
You need to provide enough space for the display of this variable by setting the single quote after far right.
If you need more than 80 columns for the display due to the number of groups you can put the TPXBATCH SYSIN statements into a dataset with LRECL up to 255.
//SYSIN DD DSN=name_of_dataset,DISP=SHR
This will allow you to display up to 27 groups. If a User Administrator can administer more than 27 groups you only can use TPXADMIN directly to get all groups.