FILEREF Function: Windows

Verifies that a fileref has been assigned for the current SAS session.
Category: External Files
Windows specifics: the fileref argument can specify a Windows environment variable
See: FILEREF Function in SAS Functions and CALL Routines: Reference



Required Argument

specifies the fileref to be validated. Under Windows, fileref can also be a Windows environment variable. The fileref or the environment variable that you specify must be enclosed in quotation marks.


A negative return code indicates that the fileref exists but the physical file associated with the fileref does not exist. A positive value indicates that the fileref is not assigned. A value of zero indicates that the fileref and external file both exist.


For an example of using the FILEREF function, see Obtaining Directory Information.