CA TPX Session Management for z/OS

Expand all | Collapse all

How to list all Profiles in TPX which have Session Definitions with an ACB Mask

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

    Posted 12-22-2015 02:24 AM

    The following TPXBATCH-Job creates a list of profiles, 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) PROFILE AND ALL SESSIONS (PIDXNAME(--------))
       SET RTITLE1 ' PROFILE  - PROFSESS - ACB MASK '                   
       SET RTITLE2 ' ==============================='                   
       REPORT GIVING(RPTFILE) USING(EXTFILE)                            
           ((' &PIDXNAME' '-' ' &PENTUSER' '-' ' &PENTACB '))           

     

    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.

    PROFILE  - PROFSESS - ACB MASK
    ===============================
    IMS      -          -         
             - IMS1     - IMSMASK
             - IMS2     - IMSMASK
    TSO      -          -         
             - TSO1     - TSOM
             - TSO2     - TSOM
             - TSOPROD  - TSOP
             - TSOTEST  -
    CICSPROD -          -         
             - CICSNY   - CICSP
             - CICSSF   - CICSP
    CICSTEST -          -         
             - CICS1    -
             - CICSZZ   -


    If you do not want to get the complete list (which might be huge) you can influence that by specifying
    EXTRACT GIVING(EXTFILE) PROFILE AND ALL SESSIONS (PIDXNAME(T-------))
    or
    EXTRACT GIVING(EXTFILE) PROFILE AND ALL SESSIONS (PIDXNAME(CI------))



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

    Posted 07-20-2016 09:51 AM

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