JCL statements

JOB Statement
Marks the beginning of the job.
EXEC Statement
Invokes SPZAP. You identify AMASPZAP as the program to be run by specifying either PGM=AMASPZAP or PGM=IMASPZAP, which is an alias name for AMASPZAP.
Note: You must ensure that the region size is at least 200K for SPZAP to complete processing normally.
The only valid parameter that you may specify is PARM=IGNIDRFULL, which enables SPZAP to override the standard restrictions placed upon CSECT updates (through NAME and REP) when IDR space for the module is found to be full.
Note:
  1. Do not use PARM=IGNIDRFULL with IBM-maintained modules.
  2. PARM=IGNIDRFULL has no meaning if SYSLIB is a program object library. There is no restriction on the number of IDRZ records associated with a program object library member.
SYSPRINT DD Statement
Defines a sequential output data set for messages that can be written on a system printer, a magnetic tape volume, or a direct access volume. This statement is required for each run of SPZAP.
SYSLIB DD Statement
Defines the direct access data set that will be accessed by SPZAP when performing the operations specified on the control statements. The DSNAME parameter and DISP=OLD or DISP=SHR are required. The VOLUME and UNIT parameters are necessary only if the data set is not cataloged. This statement cannot define a concatenated or multi-volume data set. It is required to run SPZAP.
Note:
  1. When this data set is the VTOC, you must specify DSNAME=FORMAT4.DSCB. When you access a record in the VTOC (that is, a DSCB) for modification, SPZAP issues message AMA117D to the console. No message is issued, however, when an ABSDUMPT operation is performed on the VTOC.
  2. Standard VSAM processing requires the use of an ACB to access the data set. However, because SPZAP only supports open with DCB, it does not obtain the correct information needed to operate upon a VSAM data set. Where there is a blocksize mismatch reported by SPZAP, explicit specification of the blocksize on the SYSLIB DD statement will override SPZAP's normal size processing.
SYSABEND DD Statement
Defines a sequential output data set to be used in case SPZAP ends abnormally. The data set can be written to a printer, a magnetic tape volume, or a direct access volume. This statement is optional.
SYSIN DD Statement
Defines the input stream data set that contains SPZAP control statements.