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.

Defining File ID Option Codes<br />

SX<br />

Causes a controlled file to be deleted at the end of a step after the file is<br />

processed.<br />

If SX is specified <strong>for</strong> an input file and the job step abnormally terminates, the<br />

file is not deleted and the job can be rerun.<br />

T<br />

Truncate ISAM prime EXTENT or SD work file<br />

The T option causes the ISAM (LOAD) prime EXTENT or SD work file to be<br />

truncated. The T code is not a default option. This option applies only to <strong>CA</strong><br />

<strong>Dynam</strong>/D-controlled files.<br />

W<br />

Delete SORTWK files at CLOSE of this file<br />

The W option is valid only on a DLBL statement and instructs <strong>CA</strong> <strong>Dynam</strong>/D to<br />

delete currently open SORTWK files when the file containing the W option is<br />

closed. (This option has no meaning <strong>for</strong> <strong>CA</strong> SORT users, because <strong>CA</strong> SORT's<br />

work file is always deleted by <strong>CA</strong> <strong>Dynam</strong>/D.)<br />

X<br />

Delete file at input or output CLOSE<br />

The X option causes a file to be deleted from the VTOC whenever it is closed<br />

(<strong>for</strong> input or output).<br />

Examples<br />

The following examples illustrate the use of various <strong>CA</strong> <strong>Dynam</strong>/D option codes.<br />

// JOB OPTION CODE EXAMPLE 1<br />

* ALIGN OPTION CODE<br />

// DLBL SDDOUT,'DISK.FILE (A,I)',2099/360<br />

// EXTENT SYS006,POOL01,1,0,1,4<br />

// EXEC PROGRAM<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=201 SYSWK1 X=0/19/4<br />

<strong>CA</strong>DD022I RELEASED 3 TRACKS FILE=SDDOUT VOL=SYSWK1<br />

// JOB OPTION CODE EXAMPLE 2<br />

* DELETE OPTION CODE<br />

* GENERATE FILE TO TEST DELETE<br />

// DLBL SDDOUT,'DISK.FILE (D,I)',2099/360<br />

// EXTENT SYS006,POOL01,1,0,1,8<br />

// EXEC PROGRAM<br />

<strong>CA</strong>DD002I ALLO<strong>CA</strong>TED FILE=SDDOUT SYS006=201 SYSWK1 X=0/3/8<br />

<strong>CA</strong>DD022I RELEASED 7 TRACKS FILE=SDDOUT VOL=SYSWK1<br />

// JOB OPTION CODE EXAMPLE 3<br />

* NOW DELETE SHOULD WORK<br />

Chapter 4: Disk File Management 4–19

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

Saved successfully!

Ooh no, something went wrong!