Previous Topic: &AOMTIME

Next Topic: &AOMUFLGS


&AOMTYPE

A system variable identifying the current message as a WTO, WTOR, DOM, or EVENT.

This variable is set to either WTO, WTOR, EVENT, or DOM, indicating that the current message is a WTO (or VM MSG), WTOR, screening table, or &AOMALERT generated EVENT, or MVS DOM-NOTIFY message.

Example: &AOMTYPE

.LOOP 
&AOMREAD SET 
&GOTO .&AOMTYPE
 .
 .
 .
.WTO
&AOMCONT
&GOTO .LOOP
-* Give WTOR to 'worker' procedure for analysis and reply.
.WTOR 
-INTQ ID=&WRK1 &AOMWRID &AOMWRLEN &AOMATEXT
&AOMCONT 
&GOTO .LOOP

Note: This variable can have a value of DOM only if a previous MVS-sourced message was released from an AOMPROC by &AOMCONT/REPL/DEL DOM-NOTIFY=YES.

More information:

&AOMWTO

&AOMWTOR

&AOMDOM