CA TPX Session Management for z/OS

Tuesday Tip: List all Users who have defined a specific Application in their Session List

  • 1.  Tuesday Tip: List all Users who have defined a specific Application in their Session List

    Broadcom Employee
    Posted 06-26-2015 09:57 AM

    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