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.

Processing Unchained Multifile Tapes<br />

The first DSN in the unchained multifile set dictates all volume criteria,<br />

density, tape length, and so on, <strong>for</strong> that tape and subsequent files, regardless<br />

of what is specified on the TLBL or the Catalog.<br />

All output $TEST multifile data sets (unchained or predefined) are created as<br />

single file data sets with a file sequence of one on separate volumes.<br />

Unchained multifile versions are scratched when they become eligible<br />

regardless of the location of the file on the tape. After a volume contains no<br />

active files (all unchained files are in scratch status), the volume is returned to<br />

scratch status.<br />

File sequence numbers <strong>for</strong> unchained multifile versions are relative to the start<br />

of the volume on which the file exists. File sequence numbers <strong>for</strong> predefined<br />

multifiles are relative to the volume that starts the whole multifile set. In<br />

effect, the file sequence <strong>for</strong> unchained versions start over with each new tape<br />

volume, where predefined versions continue incrementing from the first file on<br />

the first volume of the set.<br />

The following illustrates this point:<br />

DSN VOLSER FILESEQ FILESEQ<br />

PREDEFINED UNCHAINED<br />

dsn1 tape01 1 1<br />

dsn2 tape01 2 2<br />

tape02 2 1<br />

dsn3 tape02 3 2<br />

dsn4 tape02 4 3<br />

tape03 4 1<br />

The following JCL examples show how to create multifile data sets using the<br />

STACK= option.<br />

Examples:<br />

Adding a file to an active tape<br />

Note: REF must be used as the DTFNAME and filea must be the last active file<br />

on that VOLSER.<br />

// TLBL REF,'filea',STACK=A<br />

// TLBL NEWFILE,'fileb',STACK=A<br />

// EXEC pgm<br />

Create a new multifile set on a scratch volume:<br />

// TLBL OUT1,'filea',STACK=B<br />

// TLBL OUT2,'fileb',STACK=B<br />

// TLBL OUT3,'filec',STACK=B<br />

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

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

Saved successfully!

Ooh no, something went wrong!