z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


USERID

z/OS TSO/E REXX Reference
SA32-0972-00

(Non-SAA Function)

USERID is a non-SAA built-in function provided only by TSO/E and VM.
Read syntax diagramSkip visual syntax diagram
>>-USERID()----------------------------------------------------><

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 (provided that the value specified is between one and seven 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.

TSO/E lets you 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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014