Command Information Retrieval
A REXX program scheduled with the command AOFRYCMD (or by deprecated EVJRYCMD) is able to
retrieve the originating jobname and user id through task globals:
- jobname = TGLOBAL('AOFRYCMD_JOBNAME')
- userid = TGLOBAL('AOFRYCMD_USERID')
Note: When using the general purpose receiver by coding SERVER=* then TGLOBAL
AOFRYCMD_USERID contains the TSO userid, populated by userid() function in AOFRYCMD.
When not using the general purpose command receiver then, the TGLOBAL contains the SAF ID of the PPI sender, populated by the PIPE EDIT SESSID stage in command worker EVJRVCMD.