Using JCL statement keywords and symbols to override JCL
You can use JCL statement keywords and symbols to override existing JCL.
With the exception of the keywords listed in Note 2 below, JOB statement keyword parameters include those keywords that are defined for the MVS JCL JOB statement. Such keywords add to or override the specification of the JOB statement keywords. EXEC statement keyword parameters include those keywords that are defined for the MVS JCL EXEC statement. The treatment of these keywords depends on whether the target of the START command is a job or a procedure; see the following table for more information. EXEC keywords that are also JOB keywords, such as TIME and REGION, are treated as JOB keywords.
JOB statement keyword parameters are those keywords defined for the MVS™ JCL JOB statement. These keywords will add to or override the specification of the JOB statement keywords. The EXEC statement keyword parameters are those keywords defined for the MVS JCL EXEC statement. The treatment of these keywords depends on whether the target of the START command is a job or a procedure. See the following table. EXEC keywords that are also JOB keywords, such as TIME and REGION, are treated as JOB keywords.
START ABC.DEF,REGION=200K,DYNAMNBR=2
//ABC JOB REGION=200K,MSGLEVEL=1
//DEF EXEC ABC,DYNAMNBR=2
START CICS,A=20K
//CICS PROC A=10K
// EXEC PGM=XYZ,REGION=&A
//CICS JOB MSGLEVEL=1
//STARTING EXEC CICS,A=20K
The following table describes the actions that result from specifying various keywords and symbols on the START command:
Source JCL | Keyword | Result |
---|---|---|
JOB | JOB (see Note 2) | Overrides or added to source JOB statement |
JOB | EXEC | Placed on SET statement as a symbol |
JOB | DD | Overrides, or added to, source IEFRDER DD statement |
Procedure | Other (see Note 1) | Placed on SET statement as a symbol |
Procedure | JOB | Overrides, or added to, source JOB statement |
Procedure | EXEC | Placed on EXEC memname statement overriding keyword |
Procedure | DD | Overrides, or added to, source IEFRDER DD statement |
JOB | Other (see Note 1) | Placed on EXEC memname statement as symbol |
- Note 1: Other does not include the START command reserved words SUB, JOBNAME, and JOBACCT.
- Note 2: The following keywords are not merged
into the JOB statement, which allows their use as symbol names on
the START command:
- SYSAFF
- SYSTEM