Previous Topic: REXX Commands

Next Topic: Pipe Stages


REXX Functions

The returned values for all REXX functions are as follows:

Note: Unlisted functions always return a null value.

APPLID

Returns the application program identifier for the OCS window in which the command list is running.

ATTENDED

Always returns 1 (attended).

AUTOTASK

Always returns 0 (not an autotask).

CGLOBAL

Returns the value of the named common global variable if it exists. Otherwise, null is returned.

CMDNAME

Returns the name by which the program was called.

CURSYS

Returns the current system name.

DCO

Always returns N (not unattended).

DISC

Always returns 0 (not disconnected).

DISTAUTO

Always returns 0 (not a distributed autotask).

DOMAIN

Returns the name of the current emulated Tivoli NetView domain, as specified in the DSIDMNK member under the DSIPARM ddname.

FNDMBR
0

Indicates that the specified member name was found.

4

Indicates that the specified member name was not found.

O cccccccc rrrrrrrr

O indicates that DSS_PDS OPEN failed.

cccccccc is SYS.RETCODE.

rrrrrrrr is SYS.FDBK.

F cccccccc rrrrrrrr

F indicates that DSS_PDS QUERY_MEM failed.

cccccccc is SYS.RETCODE.

rrrrrrrr is SYS.FDBK.

LU

Returns the logical unit name for this operator terminal.

NETID

Returns the value of the VTAM SSCP name.

NETVIEW

Returns NV34 if no arguments are passed to the function; otherwise, a string argument of T return NetView V1R3 Emulation by NetMaster.

OPID

Returns user ID for no argument, O argument, and S argument.

Returns null for R argument.

Returns ? for T argument.

OPSYSTEM

Returns the specific operating system under which CA NetMaster is operating.

PANEL

Always returns 0 (panel commands are not allowed).

STCKGMT

Returns as an 8-byte hexadecimal value (the current Greenwich mean time in store-clock format).

SUPPCHAR

Returns the suppression character used by CA NetMaster and the NCCF-like facility, as specified in the DSIDMNK member under the DSIPARM ddname.

SYSPLEX

Returns the name of the z/OS sysplex where the command list is executing. Available when running under MVS/ESA Version 4 Release 2.2 or above.

TASK

Always returns OST (Operator Station Task is the type of task under which the command list is running).

TGLOBAL

Returns the value of the named task global variable if it exists. Otherwise, null is returned.

TOWER

Always returns 0 or null. Null if the string argument ends with an asterisk. Otherwise, 0 is returned, indicating no tower or subtower is enabled.

TYPE

Always returns ENT (enterprise option).

VTAM

Function returns the version and release of VTAM as a four-character string in the form VTvr, where v is the version number and r is the release number.

Note: The value of VTAM() is null if VTAM is not active.

VTCOMPID

Returns the 14-character VTAM component identifier.

Note: The value of VTCOMPID is null if the VTAM program is not active.

WEEKDAYN

Returns a numeric value indicating the day of the week.

1 = Monday

2 = Tuesday

3 = Wednesday

4 = Thursday

5 = Friday

6 = Saturday

7 = Sunday