OBJECT
Use the OBJECT
keyword to create
an object variable for the LISSTAT
process
and the record identified.
OBJECT(<name>)
where <name>
is the name of the object
variable to create.
The primary object for the LISSTAT
command
is a simple object variable that contains the number of records found
by the LISTSTAT
command. This is either 1
or 0, because LISSTAT
is designed to identify
only one record.
Int the following example, the object for the identified record
is the object name suffixed by 1:
LISTSTAT CPOPCOM ADID(TWSCDAILYPLAN) OPNO(010) IA(0805281200)
POLICY(C=0,?=0,20) OBJECT(CHK)
Therefore !@CHK
will contain 1 if the operation
is found, and 0 if not. !@CHK1-CPOPJES
will
contain the JES number of the job being checked.