Is there a way to do a mass update on the Sesstion1 Timeout and Option1 for all profiles
search cancel

Is there a way to do a mass update on the Sesstion1 Timeout and Option1 for all profiles

book

Article ID: 247111

calendar_today

Updated On:

Products

TPX - Session Management

Issue/Introduction

Need to remove Stage1 Timeout and Stage1 Option from all profiles and only pick up the values at the system level default. 

How can this mass change be done in batch?

 

 

Environment

Release : 5.4

Component : TPX for z/OS

Resolution

1) Run the TPX batch extract job to get the list of all profiles with the Stage1 Timeout and Stage1 Timeout Option.

    Profile variable is PIDXNAME.  Stage1 Timeout is PIDXTOU1. Stage1 Timeout Option is PIDXTOP1.

    JCL Example below:

   //BATCHADM  EXEC TPXEH,VNODE='*BATCH*'
   //EXTFILE  DD UNIT=SYSDA,SPACE=(CYL,(1,1))
   //RPTFILE  DD SYSOUT=*
   //SYSIN DD *
   EXTRACT GIVING(EXTFILE) PROFILE AND NO SESSIONS
                    (PIDXNAME(--------))
  SET RTITLE1
   ' PROFILE REPORT:  All profiles and STAGE1 Timeout & Option'
  SET RTITLE2
  ' Profile   TIMEOUT   OPTION'
  SET RTITLE3
  ' ========  =======   ====='
  REPORT GIVING(RPTFILE) USING(EXTFILE)
  (( ' &PIDXNAME' '  &PIDXTOU1' ' &PIDXTOP1'))

 

2)After executing the extract to get the list of profiles, add the update profile statement for each profile.

The value for the stage1 timeout and stage1 timeout would be all blanks in order for the values to be picked up from the System Defaults. PIDXTOU1 is 6 positions and PIDXTOP1 is 2 positions.

JCL example below:

//BATCHADM  EXEC TPXEH,VNODE='*BATCH*'
//EXTFILE  DD SYSOUT=*
//RPTFILE  DD SYSOUT=*
//SYSIN DD *
UPDATE PROFILE(AARP(PIDXTOU1(       ) PIDXTOP1(  )))
UPDATE PROFILE(ABC(PIDXTOU1(       ) PIDXTOP1(  )))
UPDATE PROFILE(BASEPROF(PIDXTOU1(      ) PIDXTOP1(  )))
UPDATE PROFILE(CICSTEST(PIDXTOU1(      ) PIDXTOP1(  )))
//