TPX Session Management for z/OS

 View Only

Tech Tip: List all Profiles which contain a specific Application in their Session List

  • 1.  Tech Tip: List all Profiles which contain a specific Application in their Session List

    Posted Jul 01, 2015 01:24 AM

    When you need to know in which Profile a specific Application is defined in TPX you can use the following TPXBATCH-Job. The field PENTAPPL 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 PROFILE CONTAINING A SPECIFIC SESSION
    //*-----------------------------------------------
    //BATCH1 EXEC tpx,VNODE='*BATCH*'
    //EXT DD UNIT=SYSDA,SPACE=(CYL,(1,1)),DISP=(MOD)
    //RPT DD SYSOUT=*
    //SYSIN DD *
    EXTRACT GIVING(EXT) PROFILE AND MATCHING SESSIONS (PENTAPPL(TSO-----))
    SET RTITLE1 ' PROFILE  PENTAPPL'
    SET RTITLE2 ' -------- --------'
    REPORT GIVING(RPT) USING(EXT)                                     
         ((' &PIDXNAME' '&PENTAPPL'))                    

    Result is a list of all profiles which contain the desired Application ID:

    PROFILE  PENTAPPL
    -------- --------
    ADMIN01
             TSO1     TSO21NY
             TSO2     TSO70BO    
    SYBKL                   
             T109     TSO21NY   
             P1       TSOGER
             P2       TSOFRA