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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.35 Allocating a data set<br />

//NEWDATA DD DSN=FILE.SEQ1,<br />

// DISP=(,CATLG),<br />

// SPACE=(50,(5,5)),AVGREC=M,<br />

// RECFM=VB,LRECL=80<br />

Figure 5-35 Allocating a sequential data set<br />

FILE.SEQ1<br />

Creating and allocating data sets<br />

Many times the words create and allocate, when applied to data sets, are used in MVS as<br />

synonyms. However, they are not.<br />

► To create (on DASD) means to assign a space in VTOC to be used for a data set<br />

(sometimes create implies cataloging the data set). A data set is created in response to<br />

the DD card DISP=NEW in JCL.<br />

► To allocate means to establish a logical relationship between the request for the use <strong>of</strong> the<br />

data set within the program (through the use <strong>of</strong> a DCB or ACB) and the data set itself in<br />

the device where it is located.<br />

Figure 5-35 shows an example <strong>of</strong> JCL used to create a data set in a system-managed<br />

environment.<br />

These are characteristics <strong>of</strong> the JCL in a system-managed environment:<br />

► The LRECL and RECFM parameters are independent keywords. This makes it easier to<br />

override individual attributes that are assigned default values by the data class.<br />

► In the example, the SPACE parameter is coded with the average number <strong>of</strong> bytes per<br />

record (50), and the number <strong>of</strong> records required for the primary data set allocation (5 M)<br />

and secondary data set allocation (5 M). These are the values that the system uses to<br />

calculate the least number <strong>of</strong> tracks required for the space allocation.<br />

Chapter 5. <strong>System</strong>-managed storage 297

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

Saved successfully!

Ooh no, something went wrong!