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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Disk File Maintenance Utilities<br />

This control statement has the following <strong>for</strong>mat:<br />

OPEN FILE=dtfname [ UNIT=SYSxxx ]<br />

[ MODE=INPUT|OUTPUT ]<br />

[ TYPE=DA|SD|IS ]<br />

[ DISK=dvctyp ]<br />

OPEN<br />

FILE=dtfname<br />

DISK=<br />

MODE=<br />

TYPE=<br />

UNIT=SYSxxx<br />

Preopens a disk data set.<br />

Defines the dtfname to be used <strong>for</strong> the file. This name must be the same as<br />

the dtfname specified on the file's DLBL statement.<br />

Optional operand. Defines the disk device type of the file. Valid parameters are<br />

2311, 2314, 3310, 3330, 3340, 3350, 3370, 3375, 3380, 3390, and 9345. The<br />

default is 3330.<br />

Optional operand. Specifies if the file is to be input or output. INPUT causes<br />

the existing file to be located. A specification of OUTPUT causes the file to be<br />

allocated. This parameter defaults to INPUT.<br />

Optional operand. Defines the file's access method: SD (sequential), DA<br />

(direct access), or IS (indexed sequential). The default value is SD.<br />

Optional operand. Defines the logical unit to be used <strong>for</strong> the file. It can be<br />

specified as either a programmer or system logical unit:<br />

where xxx must be less than 255<br />

SYS001 is the default.<br />

Notes about the OPEN control statement:<br />

• The input values are used to construct a DTF table <strong>for</strong> the appropriate<br />

access method.<br />

• DYNOPEN prints control statements upon SYSLST only if // OPTION LOG is<br />

in effect.<br />

• DYNOPEN normally reads its input from SYSIPT. The use of UPSI 001<br />

causes DYNOPEN to read its input from SYSRDR instead.<br />

Examples of Opening Files:<br />

Open an SD input file using Catalog Management:<br />

// DLBL MASTER,'PAYROLL.MASTER'<br />

// EXEC DYNOPEN<br />

OPEN FILE=MASTER UNIT=SYS011 MODE=INPUT TYPE=SD<br />

/*<br />

Chapter 5: Supporting Disk File Management 5–9

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

Saved successfully!

Ooh no, something went wrong!