Previous Topic: &AOMMSGCD

Next Topic: &AOMMSGLV


&AOMMSGID

A system variable containing the extracted message ID of the current message.

&AOMMSGID provides an easy mechanism for identifying messages.

Some examples of the possible contents of this variable are, $HASP150,IEC450I, or IST097I.

The screening table SET statement can alter the value of the MSGID, if, for example, messages that do not follow standard MVS or VM message naming rules are encountered.

Example: &AOMMSGID

.LOOP &AOMREAD SET 
&GOTO .&AOMMSGID
 .
 .
 . 
.$HASP150
 .
 .
 . 
&GOTO .LOOP

Notes:

&AOMMSGID is always taken from &AOMTEXT. For a multi-line WTO the contents of &AOMMSGID are obtained from the first or major line.

In VM, &AOMMSGID is derived from the first word of the message text.

The value in &AOMMSGID is normalized. This means that for unauthorized messages, which are normally indicated by a plus sign (+) in position 1, the plus sign (+) is removed. &AOMAUTH is used to determine if the message is authorized.

The maximum length of this system variable is 12 characters.

More information:

&AOMTEXT