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.

IBM Virtual Tape Facility (VTAPE) Support<br />

IBM limitation when writing to VSAM Virtual Tapes<br />

WRITE can only start at the beginning of a VSAM virtual tape. No rewrite or<br />

overwrite of existing data is possible except from the beginning of a tape.<br />

Once a VTAPE STOP command is issued, the remaining buffer contents is<br />

written to tape, the tape is closed, and an end-of-volume (EOV) indicator is<br />

written. This means no further data can be added to the virtual tape after the<br />

VTAPE STOP is issued.<br />

There<strong>for</strong>e, in order to create a multi-file VSAM VTAPE all files must be created<br />

using just one VTAPE START and one VTAPE STOP command. To prevent<br />

<strong>Dynam</strong>/T from automatically issuing the VTAPE STOP command, specify the<br />

HOLD option <strong>for</strong> each file of the multi-file set. Use the TDYNASN VTSTOP<br />

command to issue the VTAPE STOP command after all the files of the multi-file<br />

set are created.<br />

The following example assumes your virtual tape CUUs have been defined in<br />

the DTVIRT system option record, and that the necessary VSAM files have<br />

been created. The example creates a 3 file unchained multi-file VTAPE set:<br />

// JOB VTAPE<br />

// EXEC DYN<strong>CA</strong>T<br />

DEF 'TAPE.VTAPE.1' TAPE NGEN=2 VIRTAPE=VTAPE<br />

DEF 'TAPE.VTAPE.2' TAPE NGEN=2 VIRTAPE=VTAPE<br />

DEF 'TAPE.VTAPE.3' TAPE NGEN=2 VIRTAPE=VTAPE<br />

/*<br />

* CREATE FILE 1<br />

* USE THE HOLD OPTION TO PREVENT AUTOMATIC VTAPE STOP<br />

// TLBL SDDLBL,'TAPE.VTAPE.1,H',,,STACK=A<br />

// UPSI 10000010<br />

// EXEC DYNTEST<br />

50<br />

/*<br />

* CREATE FILE 2<br />

* USE THE HOLD OPTION TO PREVENT AUTOMATIC VTAPE STOP<br />

// TLBL SDDLBL,'TAPE.VTAPE.2,H',,,STACK=A<br />

// UPSI 10000010<br />

// EXEC DYNTEST<br />

50<br />

/*<br />

* CREATE FILE 3<br />

* USE THE HOLD OPTION TO PREVENT AUTOMATIC VTAPE STOP<br />

// TLBL SDDLBL,'TAPE.VTAPE.3,H',,,STACK=A<br />

// UPSI 10000010<br />

// EXEC DYNTEST<br />

50<br />

Chapter 3: Supporting Tape File Management 3–61

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

Saved successfully!

Ooh no, something went wrong!