Previous Topic: &AOMRKEY

Next Topic: &AOMROUTE


&AOMROUTC

A system variable that contains the routing code(s) assigned to the current message.

&AOMROUTC is set with the routing code(s) of the current message enclosed in parentheses, for example, (1,3,11).

Example: &AOMROUTC

.LOOP &AOMREAD SET
&GOTO .&AOMID
 .
 .
 .
.PREPMSG
&WRITE RC=&AOMROUTC NRD=OPER +
   DATA=PLEASE PREPARE PRINTER 1 +
    FOR SPECIAL PRINT - AWZ001
&AOMCONT
&GOTO .LOOP

Note: As is seen from the example, &AOMROUTC is formatted so it is inserted directly into an &WRITE, &WTO, &WTOR, or &AOMALERT statement.

More information:

&AOMRHEX

&AOMRKEY