Previous Topic: &ALLPARMS

Next Topic: &AOMALARM


&AOMACCT1-4

Four system variables containing, for some MVS-sourced messages, the first four accounting fields from the JOB statement.

The system variables &AOMACCT1-4 contain the first four accounting fields from the JOB statement of a job issuing a WTO or WTOR message. Each variable has a maximum length of 10 characters.

Accounting information is not always available. If the message is sourced by JES2, or the accounting control blocks could not be located, these system variables are null. They are also null for DOM-notify or VM-sourced messages.

Examples: &AOMACCT1

&AOMREAD STRING &MSG
 .
 .
 .
&IF .&AOMACCT1 = .PROD &THEN ...  process prod job
                       &ELSE ...  process non-prod job.
 .
 .
 .

Note: If accounting information is to be used, it should be saved in a table when a message that carries it is detected.

More information:

&AOMJOBID