Automatic Operation numbering
The Operation number is the unique identifier of an Operation
within an Application. It is specified by the OPNO argument
on the ADOP statement which defines each operation.
If you omit the OPNO argument from an ADOP statement, Workload Automation Programming Language can
automatically allocate operation numbers for you. Workload Automation Programming Language calculates
the operation number by adding an interval (the default is 1) to the
previous operation number. If the first operation number is omitted,
the previous operation number is assumed to be zero, meaning the first
operation number will be equal to the interval.
The interval can be set by using the ACTION(SETDEFAULT) process
to set OPNO, the operation number you set
using this method is not the default operation number, but becomes
the interval between them when OPNO is omitted.
ADSTART ACTIONS(SETDEFAULT)
ADOP OPNO(005)ADSTART ACTIONS(SETDEFAULT)
ADOP OPNO(005) DURATION(1)
ADSTART ADID(MYAPPL) OWNER(TWS)
ADOP WSID(NONR) OPNO(001) JOBN(START) AUTOPRED(PREV)
ADOP WSID(CPU1) JOBN(JOB1)
ADOP WSID(CPU1) JOBN(JOB2)
ADOP WSID(CPU1) JOBN(JOB3)
ADOP WSID(NONR) OPNO(255) JOBN(LAST)OPNO keyword is prefixed with a plus
sign (+) on the listed ADOP statements:EQQI200I ADSTART ADID(TESTSORT) OWNER(TWS)
EQQI203I ADOP WSID(DUMM) JOBN(JOB1) AUTOPRED(PREV) OPNO(1)
EQQI203I ADOP WSID(DUMM) JOBN(JOB2) +OPNO(005)
EQQI203I +ADDEP PREOPNO(1)
EQQI203I ADOP WSID(DUMM) JOBN(JOB3) +OPNO(010)
EQQI203I +ADDEP PREOPNO(5)
EQQI203I ADOP WSID(DUMM) JOBN(JOB4) +OPNO(015)
EQQI203I +ADDEP PREOPNO(10)
EQQI203I ADOP WSID(DUMM) JOBN(JOB5) +OPNO(020)