Previous Topic: &AOMLTDAT

Next Topic: &AOMLTLAB

&AOMLTEND

A system variable that indicates whether or not the current message is an end line.

&AOMLTEND is set to YES if the current line of a multi-line message is an end line else &AOMLTEND is set to NO.

Example: &AOMLTEND

... 
.LOOP &AOMREAD SET MINOR=YES
   .
   .
   .
&IF &AOMMINOR = YES AND &MULTILINEMSG = YES &THEN +
   &GOTO .MULTILINE
   .
   .
   .
.MULTILINE
 -* Reset the multi-line message flag
 -* when last line is detected.
   &IF &AOMLTEND = YES &THEN &MULTILINEMSG = NO
   .
   .
   .
   &GOTO .LOOP

Notes:

An end line is the last line of a multi-line WTO. Not all multi-line WTOs have an end line, as this is an option of the WTO macro. Sometimes the end line is also a data line.

&AOMLTEND is used, in conjunction with &AOMLTCTL and &AOMLTDAT, to manipulate and enhance multi-line messages.

The value of &AOMMINOR is set to YES if this variable contains a value of YES.

If not reading minor lines (&AOMREAD MINOR=NO), this system variable is of little use. Use the &AOMMINLT built-in function instead.

Note: For more information, see the description of the WTO macro in the appropriate system reference manual.

More information:

&AOMLTCTL

&AOMLTDAT

&AOMLTLAB

&AOMMINLT