02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

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.

374 FILENAME Statement Chapter 17<br />

specifies the status of the physical file at the beginning and ending of a job, as well<br />

as what to do if the job step terminates abnormally. If you specify only status, you<br />

can omit the parentheses.<br />

status<br />

specifies the status of the data set at the beginning of a job. Valid values are<br />

NEW creates a new data set.<br />

OLD does not share the existing data set.<br />

SHR shares the existing data set.<br />

MOD if the data set exists, adds new records to the end; if the<br />

data set does not exist, it creates a new data set. MOD<br />

cannot be specified <strong>for</strong> a partitioned data set.<br />

REP <strong>for</strong> non-PDS members, implies DISP=OLD if the data set<br />

exists and is cataloged; otherwise, it implies DISP=NEW.<br />

For PDS members, it implies DISP=SHR if the PDS is<br />

cataloged; otherwise, it implies DISP=NEW.<br />

The default is SHR.<br />

Notes:<br />

3 You can also supply any of these values <strong>for</strong> status as a separate,<br />

individual keyword in the FILENAME statement rather than as a<br />

subparameter of the DISP= option.<br />

3 DISP=REP is ignored if a volume is specified on the FILENAME<br />

statement.<br />

normal-termination-disp<br />

specifies what to do with the data set if the job step that was using the data<br />

set terminates normally. Valid values are<br />

DELETE deletes the data set at the end of the step.<br />

KEEP keeps the data set.<br />

CATLG places the entry in the system catalog or user catalog.<br />

UNCATLG deletes the entry from the system catalog or user catalog.<br />

For a new data set, the default is CATLG. For an existing data set, the<br />

default is KEEP.<br />

abnormal-termination-disp<br />

specifies what to do if the job step terminates abnormally. The default is to<br />

take the action that is specified or implied by normal-termination-disp. Valid<br />

values are<br />

DELETE deletes the data set at the end of a job step.<br />

KEEP keeps the data set.<br />

CATLG places the entry in the system catalog or user catalog.<br />

UNCATLG deletes the entry from the system catalog or user catalog.<br />

Here are some examples of the DISP parameter:<br />

DISP=SHR<br />

DISP=REP<br />

DISP=(NEW,CATLG)<br />

DISP=(OLD,UNCATLG,DELETE)

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

Saved successfully!

Ooh no, something went wrong!