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.

3.29 EATTR JCL DD statement example<br />

If an EATTR value is not specified for a data set, the<br />

following default data set EATTR values are used:<br />

The default behavior for VSAM data sets is OPT<br />

The default behavior for non-VSAM data sets is NO<br />

A DD statement defines a new data set<br />

Example allocates 10,000 cylinders to the data set<br />

When the CONTIG subparameter is coded, the system<br />

allocates 10,000 contiguous cylinders on the volume<br />

//DD2 DD DSNAME=XYZ12,DISP=(,KEEP),UNIT=SYSALLDA,<br />

// VOLUME=SER=25143,SPACE=(CYL,(10000,100),,CONTIG),<br />

// EATTR=OPT<br />

Figure 3-32 JCL example using the EATTR parameter<br />

Using the EATTR parameter<br />

OPT is the default behavior for VSAM data sets if EATTR(OPT) is not specified. For<br />

non-VSAM data sets the default is that the data set cannot have extended attribute DSCBs<br />

and optionally reside in EAS. This is equivalent to specifying EATTR(NO) on the command.<br />

EATTR JCL example<br />

In Figure 3-32, the DD statement defines a new partitioned data set. The system allocates<br />

10,000 cylinders to the data set, <strong>of</strong> which one hundred 256-byte records are for a directory.<br />

When the CONTIG subparameter is coded, the system allocates 10 contiguous cylinders on<br />

the volume. EATTR=OPT indicates that the data set might be created with extended<br />

attributes. With this option, the data set can reside in the extended address space (EAS) <strong>of</strong><br />

the volume.<br />

Note: The EATTR value has no effect for DISP=OLD processing, even for programs that<br />

might open a data set for OUTPUT, INOUT, or OUTIN processing. The value on the EATTR<br />

parameter is used for requests when the data set is newly created.<br />

Chapter 3. Extended access volumes 101

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

Saved successfully!

Ooh no, something went wrong!