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.

Controlling Generation Data Sets<br />

// DLBL SDDINP,'DISK.FILE (D,I)'<br />

// EXTENT SYS005,POOL01,1,0,1,1<br />

// DLBL SDDOUT,'TEMP.FILE (I)',1,SD<br />

// EXTENT SYS006,POOL01,1,0,1,16<br />

// EXEC PROGRAM<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=201 SYSWK1 X=0/20/16<br />

<strong>CA</strong>DD028I ACCESSED FILE=SDDINP SYS005=201 SYSWK1 X=0/3/1<br />

<strong>CA</strong>DD022I RELEASED 15 TRACKS FILE=SDDOUT VOL=SYSWK1<br />

<strong>CA</strong>DD003I AUTO-DELETE VOL=SYSWK1 FILE=SDDINP FILE-ID=DISK.FILE<br />

// JOB OPTION CODE EXAMPLE 4<br />

* TRUN<strong>CA</strong>TE ISAM OPTION CODE<br />

// DLBL ISMOUT,'ISAM.FILE (T,I)',12,ISC<br />

// EXTENT SYS006,POOL01,4,1,1,3<br />

// EXTENT SYS006,POOL01,2,2,1,4<br />

// EXTENT SYS006,POOL01,1,3,1,38<br />

// EXEC PROGRAM<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=ISMOUT SYS006=202 SYSWK2 X=1/1/3<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=ISMOUT SYS006=202 SYSWK2 X=2/164/4<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=ISMOUT SYS001=201 SYSWK1 X=3/38/38<br />

<strong>CA</strong>DD022I RELEASED 19 TRACKS FILE=ISMOUT VOL=SYSWK1<br />

Controlling Generation Data Sets<br />

By controlling generation data sets, <strong>CA</strong> <strong>Dynam</strong>/D lets you maintain multiple<br />

versions of the same file. For example, you may wish to create a disk file<br />

containing order data each day, and at the same time, process the order data<br />

created the previous day. Under normal <strong>VSE</strong> operation, this would require<br />

renaming or copying the previous day's file be<strong>for</strong>e the creation of the new file.<br />

Another example would be to keep a disk file created the first business day of<br />

each month or to keep a disk file created the first day of each fiscal quarter.<br />

These types of multiple data set versions are called generation data sets.<br />

Defining Generation Data Sets<br />

With <strong>CA</strong> <strong>Dynam</strong>/D, you need only define the file in the <strong>CA</strong> <strong>Dynam</strong>/D Catalog as<br />

a generation data set and specify the number of generations to be available.<br />

When <strong>CA</strong> <strong>Dynam</strong>/D is called to open a generation-type data set as output, the<br />

current generation number is incremented by 1, creating a new generation<br />

number <strong>for</strong> that output. Keep in mind that this is the file's generation number.<br />

4–20 <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!