11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.12 IEFBR14 utility<br />

//DATASETS JOB ...<br />

//STEP1 EXEC PGM=IEFBR14<br />

//DD1 DD DSN=DATA.SET1,<br />

// DISP=(OLD,DELETE,DELETE)<br />

//DD2 DD DSN=DATA.SET2,<br />

// DISP=(NEW,CATLG),UNIT=3390,<br />

// VOL=SER=333001,<br />

// SPACE=(CYL,(12,1,1),),<br />

// DCB=(RECFM=FB,LRECL=80)<br />

Figure 4-18 IEFBR14 program<br />

IEFBR14 program<br />

IEFBR14 is not a utility program. It is a two-line program that clears register 15, thus passing<br />

a return code <strong>of</strong> 0. It then branches to the address in register 14, which returns control to the<br />

system. So in other words, this program is dummy program. It can be used in a step to force<br />

MVS (specifically, the initiator) to process the JCL code and execute functions such as the<br />

following:<br />

► Checking all job control statements in the step for syntax<br />

► Allocating direct access space for data sets<br />

► Performing data set dispositions like creating new data sets or deleting old ones<br />

Note: Although the system allocates space for data sets, it does not initialize the new data<br />

sets. Therefore, any attempt to read from one <strong>of</strong> these new data sets in a subsequent step<br />

may produce unpredictable results. Also, we do not recommend allocation <strong>of</strong> multi-volume<br />

data sets while executing IEFBR14.<br />

In the example in Figure 4-18 the first DD statement DD1 deletes old data set DATA.SET1.<br />

The second DD statement creates a new PDS with name DATA.SET2.<br />

Chapter 4. Storage management s<strong>of</strong>tware 125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!