Previous Topic: &AOMSALRT

Next Topic: &AOMSINGL

&AOMSDATA

A system variable that contains the saved data from a successful LOOKUP statement.

The AOM screening table allows the DATA1 field of a mirrored VARTABLE to be saved when a match is found by a LOOKUP statement. This system variable contains the saved value.

Example: &AOMSDATA

.LOOP 
&AOMREAD SET 
&IF &AOMID = QPROC &THEN &AOMCONT NCLID=&AOMSDATA
 .
 .
 .

Note: An AOMPROC can maintain any useful data it likes in the DATA1 field of a mirrored VARTABLE, for use in any way it sees fit. The example above keeps the NCL IDs of secondary AOMPROCs. The key could have been a MSGID.

More information:

&VARTABLE