A system variable containing the major text of the current message.
This variable contains the text of an incoming message. If the message is a multi-line WTO/WTOR, then the text is taken from the first or major line. The text in &AOMTEXT does not change for following minor lines. For VM-sourced messages, &AOMTEXT contains the message text.
&AOMATEXT contains the minor line text associated with the major line in &AOMTEXT. For the first or major line, &AOMTEXT has the same contents.
Example: &AOMTEXT
&AOMDEL &WRITE RC=&AOMROUTC DATA=&AOMTEXT
Notes:
The three system variables &AOMMAJOR, &AOMMINOR, and &AOMSINGL is used to determine whether or not the current line is from a multi-line WTO and whether the current line is a major or minor line.
Following is a table of the possible settings for all these variables:
|
&AOMMAJOR |
&AOMMINOR |
&AOMSINGL |
&AOMTEXT |
|---|---|---|---|
|
NO |
NO |
YES |
SINGLE LINE text |
|
YES |
NO |
NO |
CURRENT LINE text |
|
NO |
YES |
NO |
FIRST/MAJOR LINE text |
&AOMSINGL is also set to YES for WTOR messages.
The text returned includes any screen character. For more information, see the &AOMCHAR1 description.
| Copyright © 2009 CA. All rights reserved. |
|