The IEFBR14 JCL utility is a dummy utility provided by IBM and its only purpose is to help meet the requirements that a job must have at least one EXEC statement. The real purpose is to allow the disposition of the DD statement to occur. IEFBR14 doesn’t return any other return codes except ZERO or JCL Error.IEFBR14 utility invokes the following tasks –
//N141231A JOB (123),'XYZ',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), // NOTIFY=&SYSUID //************************************************************ //STEP EXEC PGM=IEFBR14 //DDNAME DD DSN=dsname/PDS name, // DISP=(NEW,CATLG,DELETE), // UNIT=SYSALLDA,SPACE=(TRK,1) // DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO) //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSDUMP DD SYSOUT=*
The dataset can be either a Sequential file(PS) or Partitioned Dataset(PDS). All jobs require JOB and EXEC statements, so this sample contains both:
Required: Modify the JOB statement to uniquely identify your job and to provide additional company-specific information.
//N141231A JOB (123),'XYZ',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), // NOTIFY=&SYSUID //************************************************************
Syntax rules for the name field are:
Required: Modify the EXEC statement to uniquely identify the job step and the utility to be run.
//STEPNAME EXEC PGM=IEFBR14
Required: Modify this input DD statement to define the data set to be created.
//DDNAME DD DSN=dsname, // DISP=(NEW,CATLG), // UNIT=SYSALLDA,SPACE=(TRK,1)
Replace ddname with a unique name for this JCL DD statement; this label in the name field of a DD statement is known as a ddname. Syntax rules for ddnames are identical to those listed for job and step names on JOB and EXEC statements.
Replace dsname with the name that you want to use for your new data set. Naming and syntax rules for DSN parameter values vary depending on the type of data set you are identifying. If you want to create a permanent data set to store your own collection of JCL samples, you can specify a qualified name that starts with your TSO login ID; for example DSN=USER.JCL
Change the value for the DISP parameter, if necessary. The DISP parameter tells the system about the status of your data set and what to do with it when your job ends, either normally or abnormally. As coded in this sample, the status subparameter value NEW tells the system to create your data set. Only one subparameter value for job-end processing is specified, so the system will add an entry in the system or user catalog (CATLG), whether the job step ends normally or abnormally.
SYSPRINT – Used by utility programs for their output.
SYSOUT – Specifies system-defined dd name used for file status codes, system abend codes information, and output of the display statement.
SYSDUMP – Used by the system for dumping when an abend occurs that causes a system dump.
//N141231A JOB (123),'XYZ',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), // NOTIFY=&SYSUID //************************************************************ //STEPNAME EXEC PGM=IEFBR14 //SYSPRINT DD SYSOUT=* //DDNAME DD DSN=dsname, // DISP=(OLD,DELETE,DELETE) //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSDUMP DD SYSOUT=*
To uncatalog the dataset, the disposition should be DISP=(OLD,UNCATLG,DELETE). UNCATLG will do two tasks –
//N141231A JOB (123),'XYZ',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), // NOTIFY=&SYSUID //************************************************************ //STEPNAME EXEC PGM=IEFBR14 //SYSPRINT DD SYSOUT=* //DDNAME DD DSN=dsname, // DISP=(OLD,UNCATLG,DELETE) //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSDUMP DD SYSOUT=*
To Catalog the dataset, the disposition should be DISP=(OLD,CATLG,DELETE). CATLG will do two tasks –
//N141231A JOB (123),'XYZ',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), // NOTIFY=&SYSUID //************************************************************ //STEPNAME EXEC PGM=IEFBR14 //SYSPRINT DD SYSOUT=* //DDNAME DD DSN=dsname, // DISP=(OLD,CATLG,DELETE) //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSDUMP DD SYSOUT=*
A well-maintained product backlog is crucial for successful product development. It serves as a single…
Incremental value to the customer refers to the gradual delivery of small, functional parts of…
A Product Market refers to the group of potential customers who might be interested in…
The Professional Agile Leadership - Evidence-Based Management (PAL-EBM) certification offered by Scrum.org is designed for…
The Professional Agile Leadership (PAL I) certification, offered by Scrum.org, is designed to equip leaders…
Choosing the right Scrum Master Certification depends on your current experience and career goals. If…