JCL Parameter Substitution

The JCL member submitted to MFBSIJCL may contain parameters that are substituted before submission to Enterprise Server/MSS. When a parameter is ended by a dot or using ++, these characters are suppressed after substitution.

The ParameterName/ParameterValue pair capability is provided in the MFBSIJCL command line, but can also be specified in a parameter file or as operating system environment variables. MFBSIJCL may also automatically handle system parameters like DATE, DAY, or WEEK. For example, for the JCL member MYJCL.jcl:

//MFIDPS01  JOB 'MFIDPS',CLASS=A,MSGCLASS=A
//STEP1    EXEC PGM=IEFBR14
//SYSOUT   DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//DD1      DD DSN=%%HLQ..TEST.DSN,DISP=(MOD,DELETE)
//SYSIN    DD *
DATE    : %%DATE
/*
//
Note: In this example, %%HLQ is a user defined parameter and %%DATE is a system parameter (current date).

When submitted by MFBSIJCL (on 22 December 2013) using the command line parameters:

mfbsijcl MYJCL PARMS HLQ=MFIDPS [END-PARMS]

results in this JCL submitted to Enterprise Server/MSS

//MFIDPS01  JOB 'MFIDPS',CLASS=A,MSGCLASS=A
//STEP1    EXEC PGM=IEFBR14
//SYSOUT   DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//DD1      DD DSN=MFIDPS.TEST.DSN,DISP=(MOD,DELETE)
//SYSIN    DD *
DATE    : 131222
/*
//