Previous Topic: How IMOD Variables Are Accessed

Next Topic: Global Variables

Predefined Variables

The following predefined variables are available to IMODs. Predefined variables have their values already assigned when an IMOD is entered. All predefined variables are reserved. If you change the value of a predefined variable, the new value is not passed to external subroutines.

imod_ascb

Contains the address of the address space control block (ASCB) responsible for triggering this IMOD. The value is an integer.

imod_asid

Contains the ASID of the address space responsible for triggering this IMOD. The value is an integer.

imod_console

Contains the ID of the console responsible for triggering this IMOD. The value is a positive integer. It is zero if the IMOD was not triggered by an operator command.

imod_group

Identifies the security group assigned to the task that triggered this IMOD.

imod_id

Contains the ID assigned to the IMOD. The value is an integer. It is used for external stack references and by the CANCEL CA-GSS/ISERVE operator command.

imod_ilog

Identifies the ILOG file that is the destination for the triggering WTO text. The value is blank if it is not applicable or if logging is not requested.

imod_jobid

Contains the ID of the job responsible for triggering this IMOD (for example, JOB 4321). The value is blank if the IMOD was not triggered by a WTO message.

imod_jobname

Contains the name of the job responsible for triggering this IMOD. The value is blank if the IMOD was not triggered by a WTO message.

imod_level

Contains the nesting level of external IMOD subroutine calls.

imod_lines

Contains the number of lines in the WTO message responsible for triggering this IMOD. The value is zero if the IMOD was not triggered by a WTO message.

imod_msg.n

Contains the text of the nth line of the WTO message that triggered the IMOD (for example, imod_msg.1 is the text of the first message line). This information is also present as REXX arguments.

imod_node

Contains the name of the GoalNet node where this IMOD is processing.

imod_oursmfid

Contains the SMF ID of the system where ISERVE is executing.

imod_oursysname

Contains the system name of the system where ISERVE is executing.

imod_replyid

Contains the reply ID of the WTOR message responsible for triggering this IMOD. The value is a null string if the IMOD was not triggered by a WTOR message.

imod_sysname

Contains the name of the GRS system where the triggering WTO message was issued (usually, the system where CA‑GSS is executing). The value is blank if this IMOD was not triggered by a WTO message.

imod_timestamp

Contains the timestamp, in hh.mm.ss format, of the triggering WTO message. The value is blank if the IMOD was not triggered by a WTO message.

imod_userid

Contains the user ID assigned to the task that triggered the IMOD.