03.03.2015 Views

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

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.

Basic Components<br />

We recommend using Automatic Secondary Allocation, because it enhances<br />

both per<strong>for</strong>mance and reliability. Per<strong>for</strong>mance is improved because with<br />

Automatic Secondary Allocation active, <strong>CA</strong> <strong>Dynam</strong>/D generates only two<br />

labels. Reliability is improved because all extents of a multi-extent input file<br />

are found and read even if there are more of them than the number of EXTENT<br />

statements in the JCL.<br />

Examples<br />

Following are three examples of defining files to the Catalog. For more<br />

in<strong>for</strong>mation, see the chapter "Maintaining the Catalog—DYN<strong>CA</strong>T Program."<br />

Method One<br />

Defining the file in the <strong>CA</strong> <strong>Dynam</strong> Catalog with a primary allocation only, and<br />

allowing automatic secondary allocation to provide secondary extents. The<br />

example assumes that the DYNAM/D option record has ASAAMT(30) (30%<br />

primary allocation can be used <strong>for</strong> secondary allocation) and ASAMAX(3)<br />

(maximum of 3 secondary allocations).<br />

DISK.FILE is defined to the Catalog with 10 tracks <strong>for</strong> primary allocation, of<br />

which 30% percent (3 tracks) is allowed <strong>for</strong> secondary allocation.<br />

// JOB DEFINE ALLO<strong>CA</strong>TION<br />

// EXEC DYN<strong>CA</strong>T<br />

DEFINE 'DISK.FILE' ALLOC=(SYSWK1,TRK,10)<br />

/*<br />

/&<br />

// JOB USE FILE<br />

// DLBL SDDOUT,'DISK.FILE'<br />

// EXEC PROGRAM<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=202 SYSWK1 X=0/7/10<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=202 SYSWK1 X=1/17/3<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=202 SYSWK1 X=2/20/3<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=202 SYSWK1 X=3/23/3<br />

Automatic Secondary Allocation (ASA) works in the same fashion from JCL<br />

(that is, supply only one extent). Certain restrictions apply to using ASA <strong>for</strong><br />

files which are opened and closed multiple times in the same program. For<br />

these files, if a generic volume serial number is used (<strong>for</strong> example, WORK**),<br />

it is only effective <strong>for</strong> the first open which uses the label record.<br />

Subsequent opens will use the resolved volume serial number where the file<br />

was actually accessed or created (possibly WORK01). ASA is not supported <strong>for</strong><br />

SD TYPE=WORK files (compiler work files, FORTRAN disk files, and so on), or<br />

ISAM or DA files.<br />

Chapter 4: Disk File Management 4–5

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

Saved successfully!

Ooh no, something went wrong!