Previous Page | Next Page

Functions and CALL Routines under z/OS

FILEEXIST Function: z/OS

Verifies the existence of an external file by its physical name.
Category: External Files
z/OS specifics: filename
See: FILEEXIST Function in SAS Language Reference: Dictionary





specifies a physical filename of an external file. In a DATA step, filename can be a character expression, a string in quotation marks, or a DATA step variable. In a macro, filename can be any expression.

Under UNIX System Services (USS), filename can specify a path.


FILEEXIST returns 1 if the external file exists, and 0 if the file does not exist. FILEEXIST can also verify the existence of a directory in USS.

Previous Page | Next Page | Top of Page