TPX Session Management for z/OS

 View Only
  • 1.  How to list all Users in TPX which have Session Definitions with an ACB Mask

    Posted Dec 18, 2015 09:05 AM

    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------))



  • 2.  Re: How to list all Users in TPX which have Session Definitions with an ACB Mask

    Posted Jul 20, 2016 09:53 AM

    If you want to see an example of TPXBATCH to list all Profiles which have Session Definitions with an ACB Mask then look here: https://communities.ca.com/thread/241745461



  • 3.  Re: How to list all Users in TPX which have Session Definitions with an ACB Mask

    Posted Jan 10, 2017 02:53 AM

    If you are unfamiliar with TPXBATCH the string

    (UIDXNAME(A-------))

    might look strange. The explanation is that you refer to all User Names (stored in variable UIDXNAME) starting with the character 'A'. The dash '-' represents any character.



  • 4.  RE: How to list all Users in TPX which have Session Definitions with an ACB Mask

    Posted May 26, 2021 06:59 AM
    I have around 30+ TPX profile. I need to list down all my TPX session definition connected with TPX profile in a single job. Can I get JCL for that?