Batch Update for User Session parameters
search cancel

Batch Update for User Session parameters

book

Article ID: 249577

calendar_today

Updated On:

Products

TPX - Session Management

Issue/Introduction

 There is a need to update a users Sessions parameters in Batch, how is the statement coded?

Environment

Release : 5.4

Component : TPX for z/OS

Resolution

On the Userid Maintenance Detail for a session, there are 8 Parm fields Parm 1-8. This example shows how to update the first four:

UPDATE TPX USERSESSION (USERA CA32   <<< userid and session name
  (UENTUPB1(PARM1CC)                
   UENTUPB2(PARM2YY)                
   UENTUPB3(PARM3KK)                
   UENTUPB4(PARM4UU)))              

If the users sessions are built from profiles, they would not have a usersession record, therefore the usersession must be added prior to being able to update the values:

  ADD USERSESSION (USERA CA32)

The update could be made through the panels.

 

Additional Information

If there is not a usersession the job may end with:

VSAM GET return code is    8    
 means record not found on file 
  while UPDATing UUSERA CA32  

See the following article for more detail:

Trying to update a user's session definition through TPXBATCH results in 'record not found on file'.