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.

260 FILENAME Function Chapter 13<br />

filename<br />

specifies the external file. Specifying a blank filename (‘ ’)deassigns the fileref that<br />

was previously assigned.<br />

device<br />

specifies the type of device if the fileref points to an output device rather than to a<br />

physical file:<br />

DISK<br />

specifies a disk.<br />

DUMMY<br />

specifies that output to the file is discarded.<br />

PIPE<br />

specifies an unnamed pipe.<br />

PLOTTER<br />

specifies an unbuffered graphics output device.<br />

PRINTER<br />

specifies a printer or printer spool file.<br />

TERMINAL<br />

specifies the user’s terminal.<br />

TAPE<br />

specifies a tape drive.<br />

TEMP<br />

creates a temporary file that exists only as long as the filename is assigned. The<br />

temporary file can be accessed only through the logical name and is available only<br />

while the logical name exists. If a physical pathname is specified, an error is<br />

returned. Files manipulated by the TEMP device can have the same attributes<br />

and behave identically to DISK files.<br />

host-options<br />

are host-specific options that may be specified in the FILENAME statement. These<br />

options can be categorized into several groups. For details, see the following sections:<br />

3 “FILENAME Statement” on page 369<br />

3 “DCB Attribute Options” on page 379<br />

3 “SYSOUT Data Set Options <strong>for</strong> the FILENAME Statement” on page 383<br />

3 “Subsystem Options <strong>for</strong> the FILENAME Statement” on page 385<br />

3 “Options That Specify SMS Keywords” on page 382<br />

3 “Host-Specific Options <strong>for</strong> UNIX System Services Files” on page 104.<br />

You can specify host options in any order following the file specification and the<br />

optional device specification. When specifying more than one option, use a blank<br />

space to separate each option. Values <strong>for</strong> options may be specified with or without<br />

quotation marks. However, if a value contains one of the supported national<br />

characters ($, #, or @), the quotation marks are required.<br />

Details<br />

FILENAME returns 0 if the operation was successful, and a non-zero number if it was<br />

not successful.

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

Saved successfully!

Ooh no, something went wrong!