Previous Page | Next Page

Functions and CALL Routines under UNIX

PATHNAME Function: UNIX



Returns the physical name of a SAS library or an external file, or returns a blank.
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>)

fileref

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.

libref

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.

search-ref

specifies whether to search for a fileref or a libref.

F

specifies a search for a fileref.

L

specifies a search for a libref.


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.

Previous Page | Next Page | Top of Page