Previous Topic: &AOMNMCON

Next Topic: &AOMNMIN


&AOMNMDOM

Returns the internal DOM identifier associated with a DOM-notify message.

If an AOMPROC executes an &AOMCONT, &AOMDEL or &AOMREPL verb with the DOM-NOTIFY=YES operand specified, a DOM-Notify message is enqueued to that AOMPROC, when an eventual MVS DOM is received. If the message had the NRD=YES attribute, this system variable contains the assigned DOMID that was assigned to the message.

&AOMNMDOM is set following the &AOMREAD that receives the DOM-Notify message when the MVS DOM is received.

Example: &AOMNMDOM

&AOMREAD SET 
&IF &AOMDOM EQ YES &THEN &DO
 .  -*process &AOMDOMID and &AOMNMDOM...
 .
 .
 . 
&DOEND
 .
 .
 .

Notes:

This system variable is null unless the current message being processed by an AOMPROC is a DOM-Notify. It is also null if the original message was not NRD=YES, since no DOMID was assigned.

The AOMPROC need not issue the DOM (using &NRDDEL); AOM does this automatically.

More information:

&AOMDOMID

&AOMCONT

&AOMREPL

&AOMDEL