Previous Topic: &AOMVMUND

Next Topic: &AOMWRLEN


&AOMWRID

A system variable containing the WTOR reply ID of the current message.

&AOMWRID contains a number, normally from 00 to 99, which is the reply ID of the current message. It is 3 or 4 digits long.

This variable is used from AOMPROC to automate replies.

Example:

.LOOP 
&AOMREAD SET 
&GOTO .&AOMTYPE
 .
 .
 .
&GOTO .LOOP
-* Pass WTOR to 'worker' procedure for analysis and reply.

-* Reply Command is SYSCMD R &AOMWRID,GO

.WTOR 
&AOMCONT NCLID=&WRK1 
&GOTO .LOOP

Note: If the current message is not a WTOR, &AOMWRID is null.

More information:

&AOMTYPE

&AOMWRLEN