Example 3

The following example shows the JCL statements to check an IOCP input file. IOCP requires SYSLST for the output data set and sends reports there.
// JOB   IOCP1 
// ASSGN SYSLST,cuu 
// ASSGN SYSIPT,cuu 
// ON $RC GE 8 GOTO $EOJ 
// EXEC  PGM=ICPIOCP,SIZE=AUTO 
/* 
/&
In the example:
JOB
Specifies the JOB statement.
SYSLST
Specifies the printer to receive messages and reports. You must assign SYSLST to a physical printer or to a VSE/POWER spooled printer. (IOCP records contain ANSI device control characters and have a length of 133 bytes.)
SYSIPT
Specifies the device that contains the input data set, which consists of statements with a record length of 80 bytes. You can assign SYSIPT to a disk, tape, or card reader.
ON $RC GE 8 GOTO $EOJ
Specifies that if IOCP ends with an error (return code of 8 or greater), job processing ends.
EXEC
Specifies the EXEC statement with the following options coded:
PGM=ICPIOCP
Specifies that you want to run the ICPIOCP program.
SIZE=AUTO
Specifies that the IOCP program uses the remaining partition size for GETVIS or IARV64.