A system variable containing the text of the current line of a message that has been delivered to AOMPROC.
When the &AOMREAD verb is issued to get the next message for processing by AOMPROC, the message is tokenized by using the VARS or ARGS operand.
Where access to the complete text of the original message is required, &AOMATEXT is used.
Examples: &AOMATEXT
&AOMREAD ARGS
.
.
.
&IF &AOMID EQ WRITEOCS &THEN +
&WRITE MON=YES MSGCODE=EF DATA=&AOMATEXT
.
.
.
Notes:
&AOMATEXT equals &AOMTEXT for single line WTOs and WTORs, and VM messages. For multi-line WTOs, &AOMATEXT is always set to the current or minor line.
The three system variables &AOMMAJOR,&AOMMINOR, and &AOMSINGL is used to determine if the current line is a multi-line WTO and whether the current line is a major or minor line.
In the case of reading a minor line of a multi-line WTO, &AOMATEXT contains the actual text of the minor line.
Following is a table of the possible settings for all these variables:
|
&AOMMAJOR |
&AOMMINOR |
&AOMSINGL |
&AOMTEXT |
|---|---|---|---|
|
NO |
NO |
YES |
CURRENT LINE |
|
YES |
NO |
YES |
CURRENT LINE |
|
NO |
YES |
NO |
FIRST/MAJOR LINE |
In all the above cases, &AOMATEXT has the text of the current line.
The text returned includes any MVS screen characters.
| Copyright © 2009 CA. All rights reserved. |
|