OVERRIDE
OVERRIDE
OVERRIDE
Examples -
Scenario2 - The accounting information applies to all the steps in the MTHPROC.
OVERRIDE
Overriding parameters is a technique that allows us to replace the coded parameter values temporarily. This
technique is mainly used to replace the parameter values coded in the PROC from the calling JCL. This way, we
can modify all parameter values without changing the actual PROC.
The overriding parameters can be coded with the EXEC statement at the step level. This is useful when running
the same job with different input or output datasets without changing the PROC.
This overriding type replaces the existing parameter, which is already coded in PROC.
Syntax -
Examples -
//MTHPROC PROC
//STEP01 EXEC PGM=PROG1,COND=EVEN
//STEPLIB DD DSN=MATEPK.COBOL.LOADLIB,DISP=SHR
//INPUT DD DSN=MATEPK.INPUT.OLDPS,DISP=SHR
JCL -
JCL -
JCL -
JCL -
Syntax -
Examples -
JCL -
PROC -
//MTHPROC PROC
//STEP01 EXEC PGM=PROG1
//INPUT DD DSN=MATEPK.IEFBR14.PSFILE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(3,2),RLSE),
// UNIT=SYSDA,VOLUME=SER=DEVHD4,
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
JCL -
This type of overriding deletes the existing parameter that is already coded in PROC.
Syntax -
//STEPname EXEC proc-name
//STEPname.DDname DD parameter1,parameter2,..
//PROC proc-name
Examples -
JCL -
PROC -
//MTHPROC PROC
//STEP01 EXEC PGM=PROG1
//INPUT DD DSN=MATEPK.IEFBR14.PSFILE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(3,2),RLSE),
// UNIT=SYSDA,VOLUME=SER=DEVHD4,
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800),
// DSNTYPE=LARGE