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.

Using Automatic Multifile (AMF) Data Sets<br />

Any combination of letters and numbers can be used as with any other DSN.<br />

The only restriction is that there must be three asterisks (***) somewhere in<br />

the DSN; they indicate where the three-digit numbers will be inserted.<br />

The following are valid data set names <strong>for</strong> AMF data sets:<br />

'AMF***'<br />

'PAYROLL BACKUP***'<br />

'FILE***PR TRANS'<br />

Example:<br />

This DEFINE statement creates a multifile data set named 'AMF***'. It is the<br />

prototype <strong>for</strong> the AMF set.<br />

DEFINE 'AMF***' NGEN=1 MF=AUTO<br />

A program creating the file above using file name OUTFILE would require a<br />

TLBL as below:<br />

// TLBL OUTFILE,'AMF***'<br />

The first time this job is run, <strong>CA</strong> <strong>Dynam</strong>/T creates version one of data set<br />

AMF001. The next time, <strong>CA</strong> <strong>Dynam</strong>/T finds a valid version <strong>for</strong> AMF001; it<br />

subsequently creates a new data set, AMF002.<br />

If the data set AMF002 was not closed or if it was closed and later scratched<br />

manually, this same DSN would be used the next time the job was run. In<br />

other words, the last file on the existing AMF set is checked to see if it contains<br />

a good version. Depending on whether it contains a valid version <strong>CA</strong> <strong>Dynam</strong>/T<br />

does the following:<br />

• If it does contain a valid version, <strong>CA</strong> <strong>Dynam</strong>/T adds one to the DSN and<br />

creates a new DSN as the last file on the AMF set. Each data set created<br />

will have the same characteristics (retention, owner, and so on.) as the<br />

base data set.<br />

• If it does not contain a valid version, <strong>CA</strong> <strong>Dynam</strong>/T uses the DSN again.<br />

Volume Switching with AMF Data Sets<br />

<strong>CA</strong> <strong>Dynam</strong>/T provides automatic volume switching when end-of-volume is<br />

reached.<br />

Use the DYN<strong>CA</strong>T ALTER command whenever you want to start the next file on<br />

a separate volume:<br />

ALTER 'AMF***' MF=NEW<br />

2–70 <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!