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 />

Deleting Generation Data Sets<br />

<strong>CA</strong> <strong>Dynam</strong>/D will also delete any outdated generations based on the number of<br />

generations defined in the Catalog <strong>for</strong> this file. If, <strong>for</strong> any reason, the program<br />

abends, the current generation number remains intact and thus allows the<br />

program to be rerun without any JCL changes. The current generation number<br />

will remain unchanged until the next creation of the file. It is used by <strong>CA</strong><br />

<strong>Dynam</strong>/D to determine which version to access when the file is subsequently<br />

processed as input.<br />

The <strong>CA</strong> <strong>Dynam</strong>/D DASD allocation routines will assume that any expired <strong>CA</strong><br />

<strong>Dynam</strong>/D-created file is available <strong>for</strong> deletion. Generation data sets are always<br />

allocated as permanent files to ensure that they are controlled exclusively by<br />

version.<br />

Generation Data Set Option<br />

You can specify an option on the DLBL to control which file generation is to be<br />

accessed. If you don't specify an option, <strong>CA</strong> <strong>Dynam</strong>/D will read the most<br />

current file. (To follow the syntax rules defined <strong>for</strong> <strong>CA</strong> <strong>Dynam</strong>/D option codes,<br />

enclose the file generation option in parentheses.) With this option, you can<br />

request access to a version by specifying any one of the following about the<br />

files:<br />

• Generational number<br />

• Absolute generation number<br />

• Relative generation number<br />

Generational Numbers<br />

The generational number is recorded in the file ID of the disk VTOC <strong>for</strong> each<br />

version. To request a version by its generational number, include that number<br />

as an option in the file ID field of the DLBL statement. For example, to request<br />

the sixth version of a file (defined as G#06 in the VTOC entry <strong>for</strong> that file), use<br />

the following option code:<br />

// DLBL FILE,'DISK.FILE(G#06)'<br />

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

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

Saved successfully!

Ooh no, something went wrong!