Functions and CALL Routines under UNIX |
Category: | SAS File I/O |
UNIX specifics: | fileref or libref argument can also specify a UNIX environment variable |
See: | PATHNAME Function in SAS Language Reference: Dictionary |
Syntax | |
Details |
Syntax |
PATHNAME((fileref | libref) <,search-ref>) |
specifies the fileref that is assigned to the external file. 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.
The value of fileref can be a UNIX environment variable.
specifies the libref that is assigned to a SAS library. In a DATA step, libref can be a character expression, a string enclosed in quotation marks, or a DATA step variable whose value contains the libref. In a macro, libref can be any expression.
The value of libref can be a UNIX environment variable.
specifies whether to search for a fileref or a libref.
F | |
L |
Details |
PATHNAME returns the physical name of an external file or SAS library, or a blank if fileref or libref is invalid.
For more information about using a UNIX environment variable for fileref or libref, see FILENAME Function: UNIX.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.