Previous Page | Next Page

Functions and CALL Routines under z/OS

FEXIST Function: z/OS



Verifies the existence of an external file associated with a fileref.
Category: External Files
z/OS specifics: fileref
See: FEXIST Function in SAS Language Reference: Dictionary

Syntax
Details

Syntax

FEXIST(fileref)

fileref

identifies an external file. If fileref is a literal fileref name, it must be in quotation marks. If fileref is the name of a character variable whose value is a fileref name, it must not be quoted. Under z/OS, it can be a fileref or any valid ddname that has been previously associated with an external file using either a TSO ALLOCATE command or a JCL DD statement. In a DATA step, fileref can be a character expression, a string enclosed in quotation marks, or a DATA step variable whose value contains the fileref. In a macro, fileref can be any expression. See the SAS Language Reference: Dictionary for information about the values returned by this function.


Details

FEXIST returns 1 if the external file that is associated with fileref exists, and 0 if the file does not exist.

Previous Page | Next Page | Top of Page