A system variable containing the MVS address space ID (ASID) that issued the current message, in hexadecimal format.
&AOMASID contains a four-digit hexadecimal number which is the address space ID of the job that generated the message.
Sometimes messages are generated by a job, such as JES2, on behalf of another job. In such an instance the value in &AOMASID is the ID of the actual address space that issued the message, such as JES2, and not the ID of the address space that the message actually refers to.
Examples: &AOMMSGID
.LOOP &AOMREAD SET &TESTJOB = &SUBSTR &AOMJOBNM 1 4 &IF .&AOMMSGID = .$HASP373 &IF &TESTJOB = TEST &GOTO .CANJOB . . . &GOTO .LOOP -*Pass ASID to Worker NCL proc with request to CANCEL job. .CANJOB -INTQ ID=xxx CANCEL &AOMASID &GOTO .LOOP
Note: This variable is null if the current message is VM-sourced or a DOM-Notify.
| Copyright © 2009 CA. All rights reserved. |
|