DSM/Tape Catalog User's Guide

Using TAPECATALOG DEFINE Attributes
DSM/Tape Catalog User’s Guide 520233-008
6 - 15
General Examples
The DEFINE in this example requests the input tape file ACCOUNTS_PAYABLE,
an IBM-MVS labeled tape. However, it is requesting the next-to-current generation
of ACCOUNTS_PAYABLE, not the latest generation of this tape file ID.
17> ADD DEFINE =READ_ACCOUNT_PAYABLE,&
17> & CLASS TAPECATALOG,&
17> & USE IN,&
17> & LABELS IBM,&
17> & FILEID ACCOUNT_PAYABLE,&
17> & GEN -2,&
The DEFINE in this example requests an IBM-MVS labeled scratch tape. The
output file, PAYROLL_MASTER, is cataloged as the next generation of this tape
file ID in the file catalog. The existing volume catalog entry for the tape is changed
to give the tape an assigned status and associate it with the file catalog entry for
PAYROLL_MASTER.
52> ADD DEFINE =WRITE_PAYROLL_MASTER,&
52> & CLASS TAPECATALOG,&
52> & USE OUT,&
52> & POOL PAYROLL_TAPES,&
52> & LABELS IBM,&
52> & FILEID PAYROLL_MASTER,&
52> & RETENTION 100
This example shows the required DEFINEs for an application writing two files to
one volume set. Each DEFINE contains the FILESEQ attribute to identify the order
of the files on the volume set.
33> ADD DEFINE =OUTPUT_1,&
33> & CLASS TAPECATALOG,&
33> & USE OUT,&
33> & FILEID LOCAL_ACCOUNTS,&
33> & GEN +1,&
33> & FILESEQ 1,&
33> & VOLUME LA0001,&
33> & RETENTION 100
34> ADD DEFINE =OUTPUT_2,&
34> & CLASS TAPECATALOG,&
34> & USE OUT,&
34> & FILEID REGIONAL_ACCOUNTS,&
34> & GEN +1,&
34> & FILESEQ 2,&
34> & VOLUME LA0001,&
34> & RETENTION 100