Previous Topic: &AOMLTLAB

Next Topic: &AOMMHEX

&AOMMAJOR

A system variable that indicates whether or not the current line of the current message is a major line.

This variable is set to YES if the current line is the first line of a multi-line WTO message.

If the current message is a single line WTO, as indicated by a value of YES in &AOMSINGL, then &AOMMAJOR is set to NO.

Example: &AOMMAJOR

.LOOP 
&AOMREAD SET  MINOR=&MULTI 
&IF &AOMMAJOR = YES &GOTO .MULTILINE
 .
 .
 .
&MULTI=NO
&GOTO .LOOP
 .
 .
 .
.MULTILINE
&MULTI = YES
 .
 .
 .
&GOTO .LOOP

Notes:

The &AOMMINLN and &AOMMINLT built-in functions is used while holding the major line to access all the other lines of a multi-line WTO. If &AOMREAD MINOR=NO is issued after reading a major line, the minor lines are not presented individually.

This variable is used, in conjunction with &AOMMINOR and &AOMSINGL, to manipulate message flow for multi-line WTOs.

This system variable indicates the start of a multi-line message. Based on other criteria, you might then decide to enter a loop where you read individual lines (using &AOMREAD MINOR=YES).

More information:

&AOMMINOR

&AOMSINGL

&AOMATEXT

&AOMTEXT