Using Batch commands, how can a session be added in a Tiered Menu to an existing profile or user?
Main Menu has a session TSO:
Select TSO: A new session needs to be added to this menu.
Release : 5.4
Component : CA-TPX for OS/390
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 DVNEW2
ADD TPX PROFILESESSION (BASEPROF DVNEW2
(PENTAPPL(A31ITSO) <<< 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 TPX54DVV,VNODE='*BATCH*'
//SYSIN DD *
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.
ADD TPX USERSESSION (VISDI01 NEWTSO
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 DVNEW2)
Delete from a USERSESSION:
DELETE TPX USERSESSION (username NEWTSO)