Previous Page | Next Page

SAS Functions and CALL Routines under Windows

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 Language Reference: Dictionary

Syntax
Details
Example

Syntax

FILEREF("fileref")

fileref

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.


Details

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.


Example

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

Previous Page | Next Page | Top of Page