When you need to know who is using a specific Application in TPX you can use the following TPXBATCH-Job. The field UENTAPPL contains the desired Application ID or, as in the example below, a prefix. The dashes '-' represent any character and act as a wildcard:
//jobcard
//*-------------------------------------------------
//* LIST ALL USERS HAVING A SPECIFIC SESSION DEFINED
//*-------------------------------------------------
//BATCH1 EXEC tpx,VNODE='*BATCH*'
//EXT DD UNIT=SYSDA,SPACE=(CYL,(1,1)),DISP=(MOD)
//RPT DD SYSOUT=*
//SYSIN DD *
EXTRACT GIVING(EXT) USER AND MATCHING SESSIONS (UENTAPPL(TSO-----))
SET RTITLE1 ' USERID UENTUSER UENTAPPL'
SET RTITLE2 ' -------- -------- --------'
REPORT GIVING(RPT) USING(EXT)
((' &UIDXNAME' '&UENTUSER' '&UENTAPPL'))
Result is a list of all userids, their Session ID and the Application ID:
USERID UENTUSER UENTAPPL
-------- -------- --------
BMEYER
TSO1 TSO23NY
TSO2 TSO41SF
SYBKL
T1 TSO23NY
P1 TSOFRA
P2 TSOUK1