USERID
(Non-SAA Function)
Returns the TSO/E user ID, if the REXX
exec is running in the TSO/E address space. For example:
USERID() -> 'ARTHUR' /* Maybe */If the exec is running in a non-TSO/E address space, USERID returns
one of the following values:
- User ID specified (if the value specified is between one and eight characters in length)
- Stepname specified
- Jobname specified
The value that USERID returns is the first one that does not have a null value. For example, if the user ID is null but the stepname is specified, USERID returns the value of the stepname.
You can use TSO/E to replace the routine (module) that is called to determine the value the USERID function returns. This is known as the user ID replaceable routine and is described in User ID routine. You can replace the routine only in non-TSO/E address spaces. Replaceable routines and exits describes replaceable routines in detail and any exceptions to this rule.
