TPX: Batch method to add a profile session to a Tiered Menu
search cancel

TPX: Batch method to add a profile session to a Tiered Menu

book

Article ID: 207868

calendar_today

Updated On:

Products

TPX - Session Management

Issue/Introduction

Using Batch commands, how can a session be added in a Tiered Menu to an existing profile or user?

Example:

Main Menu has a session TSO:

Select TSO:  A new session needs to be added to this menu.

Environment

Release : 5.4

Component : CA-TPX for OS/390

Resolution

 Below are 2 examples, one adding a session to a profile and another adding a session to a user:

Add a session to a profile in a Tiered menu:

For the profile level, profile BASEPROF, adding session NEWSES1

ADD TPX PROFILESESSION (BASEPROF NEWSES1
(PENTAPPL(xxxxxxx)    <<< applid
PENTOPTI(Y)     <<<< invisible
PENTHLID(7)))  <<<<< member key

From the doc:

PENTHLID: The value of the Owner Key in the sub-menu that owns this session. This session is a member of that owner.

 

Add a session to a user in a Tiered menu:

This goes with the screens in the Introduction.  This adds session 'NEWTSO' under 'TSO'.

//BATCHADM  EXEC tpxprocname,VNODE='*BATCH*'                         
//SYSIN DD *                                                      
C                                                                 
C HOW TO ADD A USER SESSION TO A TIERED MENU AT THE PROFILE or User LEVEL 
C   THE VARIABLES STARTING WITH 'U' ARE USER 'P' ARE PROFILE.     
C                                                                 
ADD TPX USERSESSION (username NEWTSO                               
  (UENTAPPL(xxxxxxx)    <<< applid                                              
   UENTOPTI(Y)                                                    
   UENTHLID(7)))                                                  

After the above command is run, session  NEWTSO is now under TSO:

Notice the variable names in the ADD command, those related to a USER Session start with 'U'.  Those related to a Profile Session start with 'P'.

 

 


Delete in batch:


Delete from a PROFILESESSION:

   DELETE TPX PROFILESESSION (BASEPROF NEWSES1)

Delete from a USERSESSION:

   DELETE TPX USERSESSION (username NEWTSO)

Additional Information

Batch User, Profile and Session Variables are documented under the section: Batch Variables.

Batch Commands are detailed under the section :  Batch Command Summary

More detail on Tiered Menus:  Implement Tiered Menus