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.

Tape File Management Utilities<br />

The tape should not be subsequently rewound by the user program.<br />

TDYNASN normally reads input from SYSIPT. When the OPEN function is used<br />

<strong>for</strong> SYSIPT, TDYNASN must be directed to read its input from SYSRDR. The<br />

use of UPSI 001 reassigns SYSIPT and causes the TDYNASN OPEN function to<br />

read its input from SYSRDR instead.<br />

CLOSE Command<br />

The CLOSE command causes the <strong>CA</strong> <strong>Dynam</strong> Catalog to be updated but does<br />

not actually close the file; it does not write an EOF1 record and tape mark.<br />

This can be done with an MTC job control command; the TDYNASN CLOSE<br />

function does not release the assignment.<br />

Note: The CLOSE command has to access the original label (TLBL) that was<br />

opened, generally by the OPEN command. If this is not done, the CLOSE will<br />

be unsuccessful.<br />

Example:<br />

// JOB CREATE SYSPCH TAPE<br />

// TLBL FILEA,'DSN,P'<br />

// EXEC TDYNASN<br />

OPEN FILEA,SYSPCH,OUTPUT<br />

/*<br />

// EXEC ASSEMBLY<br />

ASSEMBLY PROGRAM INPUT<br />

/*<br />

// EXEC TDYNASN<br />

CLOSE FILEA,SYSPCH,OUTPUT<br />

/*<br />

// MTC REW,SYSPCH (The close only Catalogs the data set.)<br />

/&<br />

// JOB READ SYSPCH TAPE<br />

// TLBL FILEA,'DSN'<br />

// UPSI 001 READ FROM SYSRDR<br />

// EXEC TDYNASN<br />

OPEN FILEA,SYSIPT,INPUT<br />

/*<br />

// EXEC LIBR<br />

/*<br />

// MTC RUN,SYSIPT<br />

/&<br />

This example uses TDYNASN to create a SYSPCH tape, then reads it as<br />

SYSIPT.<br />

Note: <strong>Dynam</strong>ic LUB allocation must be bypassed <strong>for</strong> the SYSPCH tape.<br />

3–6 <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!