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.

Details<br />

FILEEXIST Function<br />

Functions and CALL Routines under z/<strong>OS</strong> FILENAME Function 259<br />

FEXIST returns 1 if the external file that is associated with fileref exists, and 0 if the<br />

file does not exist.<br />

Verifies the existence of an external file by its physical name<br />

Category: External Files<br />

z/<strong>OS</strong> specifics: filename<br />

See: FILEEXIST Function in <strong>SAS</strong> Language Reference: Dictionary<br />

Syntax<br />

FILEEXIST(filename)<br />

filename<br />

specifies a physical filename of an external file. In a DATA step, filename can be a<br />

character expression, a string in quotation marks, or a DATA step variable. In a<br />

macro, filename can be any expression.<br />

Under UNIX System Services, filename can specify a path.<br />

Details<br />

FILENAME Function<br />

FILEEXIST returns 1 if the external file that is associated with fileref exists, and 0 if<br />

the file does not exist.<br />

Assigns or deassigns a fileref <strong>for</strong> an external file, a directory, or an output device<br />

Category: External Files<br />

z/<strong>OS</strong> specifics: host options, devices<br />

See: FILENAME Function in <strong>SAS</strong> Language Reference: Dictionary<br />

Syntax<br />

FILENAME(‘fileref’,filename)<br />

fileref<br />

in a DATA step, specifies the fileref to assign to an external file. In a macro (<strong>for</strong><br />

example, in the %SYSFUNC function), fileref is the name of a macro variable<br />

(without an ampersand) whose value contains the fileref to assign to the external file.

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

Saved successfully!

Ooh no, something went wrong!