Previous Topic: &ZMAOMMSG

Next Topic: &ZMAOMRCM


&ZMAOMRC

Contains the AOM routing code(s) assigned to the current message.

If the current message contains AOM data (&ZMAOMDTA = YES), &ZMAOMRC contains the routing code(s) of the current message, enclosed in parenthesis, for example, (1,3,11).

&ZMAOMRC is set to null if there are no AOM attributes for the current message.

Example: &ZMAOMRC

.LOOP &MSGREAD SET 
&GOTO .&ZMAOMID
 .
 .
 .
.PREPMSG 
&WRITE RC=&ZMAOMRC NRD=OPER +
   DATA=PLEASE PREPARE PRINTER 1 +
     FOR SPECIAL PRINT - AWZ001 
&MSGCONT 
&GOTO .LOOP

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

This system variable corresponds to the &AOMROUTC system variable available to an AOMPROC.

Authorized AOM receivers can use the PROFILE ROUTCDE= command to control the receipt of messages used on routing codes.

Note: For more information, see the PROFILE command description in the Online Help.

More information:

&AOMROUTC

&ZMAOMRCM

&ZMAOMRCX