Previous Topic: Message Profile

Next Topic: &INTREAD Message Profile

Message Profile Variables

Following execution of any of the &INTREAD, &LOGREAD, &PPOREAD, or &MSGREAD verbs, message profile variables are set to reflect the message profile of the message read by the verb statement. The particular variables that are set depend on the verb executed and on the class of message received.

This section describes the different values that can be set in the variables that apply to the &INTREAD, &LOGREAD, and &MSGREAD verbs, and the conditions under which each of the variables can be set. The individual variables that form the message profiles of the message flows handled by the different verbs are then cross-referenced against the individual verbs in the remaining sections.

Note: System profile variables are available immediately after the &xxxREAD statement is executed and are generally available until another NCL statement is executed that alters the profile. System variables are valid only within the scope of the procedure and their values are unpredictable when control is passed to another procedure level. MDOs can be shared between called procedures using SHRVARS and explicitly on the &return statement.

Following is a list of the complete set of message profile variables that apply to these three verbs. Their MDO equivalents are included in brackets, where relevant.

Note: stem can be $MSG, $INT or $LOG depending on which verb caused the variable to be set.

&ZINTYPE

Specifies whether an &INTREAD operation has been satisfied by a request message or a response message. Values are REQ (request message) or RESP (response message) or NONE (no message).

&ZMALARM (stem.MSGATTR.ALARM)

Indicates whether the message will cause the terminal alarm to sound. Value is YES or NO.

&ZMALLMSG

Indicates whether the message was generated by a MSG ALL command. Value is YES or NO.

&ZMCOLOUR (stem.MSGATTR.DISPLAY.COLOUR)

Indicates the color attribute of the message. Value can be any one of NONE, RED, BLUE, GREEN, YELLOW, TURQUOISE, PINK, or WHITE.

&ZMDOM

Indicates whether the message is a delete operator message instruction. Value is YES or NO. This value is dependent also on the setting of the &ZMTYPE variable.

&ZMDOMID (stem.DOMID)

Contains the delete operator message identifier (domid) of the message read, if the message has the non-roll delete message attribute, as determined by the setting of the &ZMNRD variable. If &ZMNRD=NO, this variable is set to null.

&ZMEVONID (stem.SOURCE.NCLID)

Is set when the incoming message was generated by an &EVENT verb and contains the nclid of the procedure which issued the &EVENT.

&ZMEVPROF (stem.SOURCE.EVENTPROFILE)

Is set for incoming event messages (N00102) and represents the EDS profile name which resulted in delivery of the event notification.

&ZMEVRCDE (stem.EVENT.ROUTECDE)

Contains the routecde of the incoming event message (N00102) if the ROUTECDE operand was specified on the originating &EVENT verb.

&ZMEVTIME (stem.SOURCE.TIME.HHMMSSTTT)

Is set for incoming event messages (N00102) to the time the event originated. Time is in the format HH.MM.SS.TTT.

&ZMEVUSER (stem.SOURCE.USER)

Is set when the incoming message was generated by an &EVENT verb and contains the user ID of the user who issued the &EVENT verb. This variable is also set for some system events and represents the user who was responsible for the event generation.

&ZMFTSMSG

Indicates whether the message originated from File Transmission Services (FTS). Value is YES or NO.

&ZMHLIGHT (stem.MSGATTR.DISPLAY.HLITE)

Indicates the display highlighting attributes of the message. Values are NONE, USCORE, REVERSE, or BLINK.

&ZMINTENS (stem.MSGATTR.DISPLAY.INTENS)

Indicates the display intensity attribute of the message. Values are HIGH or LOW or null if no message is being processed.

&ZMLNODE (stem.SOURCE.REGION)

Indicates the terminal name of the user to whom a log message is to be attributed. Value is the name of a terminal. (This is available to &LOGREAD only.)

&ZMLOGCMD

Indicates whether a log message is an echo to the log of a command. Value is YES or NO. (This is available to &LOGREAD only.)

&ZMLSRCID (stem.PREFIX.LASTMSGID.ID)

Contains the message prefix of the last handler of the message just received.

&ZMLSRCTP (stem.PREFIX.LASTMSGID.TYPE)

Indicates the type of the last handler of the message just received. Values can be:

null

If the message was generated within this system.

ROF

If the message was delivered across a ROF session.

MAIOC

If the message was delivered across an MAI OC session.

&ZMLTIME

Contains the timestamp of a log message. (This is available to &LOGREAD only.) Time is in the format HH.MM.SS.TTT.

&ZMLUSER (stem.SOURCE.USER)

Contains the user ID to whom generation of the log message is to be attributed. (This is available to &LOGREAD only.)

&ZMAPNAME (stem.MAPNAME)

Contains the mapname of the object in $MSG.USERMDO for the current message (if present).

&ZMMONMSG

Indicates whether the message received is a monitor class message. Values are YES or NO.

&ZMMSG

Indicates whether the message received is a standard message or not. The setting of this variable is always opposite to the setting of the &ZMDOM variable and is dependent on the setting of the &ZMTYPE variable.

&ZMMSGCD (stem.MSGATTR.MSGCODE)

Indicates the (hexadecimal) message code attribute of this message. Value can be 00-FF. The message code dictates which user IDs are eligible to receive the message.

&ZMNMDIDL (stem.SOURCE.LAST.DOMAIN)

The domain ID of the last region to handle this message. This can be the same as the originating system, or different if the message was originated by a remote system and then routed onwards by an intermediate system.

&ZMNMDIDO (stem.SOURCE.ORIG.DOMAIN)

The domain ID of the region from which this message originated. If sourced from the local system it will contain the local system's domain ID. If sourced from a remote system this variable carries the domain ID of the originating system even though the message might have been routed onwards by intermediate systems.

&ZMNRD

Indicates whether the message carries the non-roll delete attribute. Values can be:

NO

Not a non-roll delete message.

YES

Message is non-roll delete and can be deleted only by a delete operator message (DOM) instruction.

OPER

If the message is non-roll delete but is deleted only by the cursor delete function from an OCS window.

&ZMNRDRET

Indicates whether the message has been received as a result of a NRDRET command being issued by the user. This allows an NCL procedure to detect redisplayed messages and ignore them for event analysis purposes. Value is YES or NO.

&ZMOSRCID (stem.PREFIX.ORIGMSGID.ID)

Contains the message prefix of the originator of the message just received.

&ZMOSRCTP (stem.PREFIX.ORIGMSGID.TYPE)

Indicates the type of the originator of the message just received. Values can be:

null

If the message was generated within this system.

ROF

If the message was delivered across a ROF session.

MAIOC

If the message was delivered across an MAI OC session.

&ZMPPODTA

Indicates whether any PPO message profile information is available concerning this message. Value is YES or NO. If YES, then other message profile variables are available containing information relating to certain PPO attributes of the message.

&ZMPPOMSG

Indicates whether the message originated from PPO. Value is YES or NO.

&ZMPPOSEV (stem.MSGATTR.SEVERITY)

If &ZMPPODTA = YES, then the severity level of the PPO message is available in this variable. Value can be U (undeliverable), I (information), W (Important!), N (normal), or S (severe).

&ZMPPOTM (stem.SOURCE.TIME.HHMMSSTTT)

If &ZMPPODTA = YES, this variable contains the time that the message originated. Time is in the format HH.MM.SS.TTT.

&ZMPPOVNO (stem.PPOCNTL.VTAMNUM)

If &ZMPPODTA = YES, this variable contains the VTAM message number of the PPO message.

&ZMPREFXD

Indicates whether the message text has been prefixed with identifier values, for example MAI OC session identifier or ROF message prefix. Values are YES or NO.

&ZMPTEXT

Is set to the entire message text, prefixed with any ROF or MAI OC session identifiers according to the current profile settings, as it will appear on the OCS window if the message is allowed to flow to the window unchanged.

&ZMREQID

If &ZINTYPE=REQ (&INTREAD satisfied by a request message), this variable is set to the user ID of the user that issued the INTQUE command that generated the message, or to the NCL ID of the NCL process that issued the INTQUE command or the &WRITE statement. This variable is dependent on &ZINTYPE for relevance, and its setting is categorized by the &ZMREQSRC variable which will also be set. (This is available to &INTREAD only.)

&ZMREQSRC

If &ZINTYPE=REQ (&INTREAD satisfied by a request message), this variable indicates whether the process that generated the message was a user, another NCL process or a system notification. Values are USER, NCL or SYSTEM respectively. (This is available to &INTREAD only.)

&ZMSOLIC

Indicates whether the message was solicited or unsolicited. A solicited message is usually a command response. Values are YES (solicited) or NO.

&ZMSOURCE

Indicates the verb that last set the values of the message profile variables. The suite of message profile variables remain set until changed by the execution of another verb that modifies the suite. Values are:

&ZMTEXT (stem.TEXT)

After &LOGREAD, this variable does not include the standard log message heading information of user ID, time, and terminal name. These values are available from other message profile variables that are set after &LOGREAD.

&ZMTYPE

Specifies the type of message received after execution of the read verb. Values are:

MSG

The message is a standard text message.

DOM

The message is a delete operator message instruction.

REQ

The message is a request message that has satisfied &INTREAD TYPE=ANY or TYPE=REQ.