SAS Functions and CALL Routines under Windows |
Category: | External Files |
Windows specifics: | filename can be assigned with an environment variable |
See: | FILEEXIST Function in SAS Language Reference: Dictionary |
Syntax | |
Details |
Syntax |
FILEEXIST("filename") |
specifies a fully qualified physical filename of the 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 Windows, filename can also be an environment variable. The filename or environment variable that you specify must be enclosed in quotation marks.
Note: The FILEEXIST function can also verify a directories existence.
Details |
FILEEXIST returns 1 if the external file exists and 0 if the external file does not exist.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.