PATHNAME returns the
physical name of an external file or SAS library, or blank if
fileref or
libref is invalid.
If the name of a fileref
is identical to the name of a libref, you can use the
search-ref argument to choose which reference
you want to search. If you specify a value of F, SAS searches for
a fileref. If you specify a value of L, SAS searches for a libref.
If you do not specify
a
search-ref argument, and
the name of a fileref is identical to the name of a libref, PATHNAME
searches first for a libref. If a libref does not exist, PATHNAME
then searches for a fileref.
The default length of
the target variable in the DATA step is 200 characters.
You can assign a fileref
to an external file by using the FILENAME statement or the FILENAME
function.
You can assign a libref
to a SAS library using the LIBNAME statement or the LIBNAME function.
Some operating environments allow you to assign a libref using system
commands.
Windows Specifics: Under some operating environments, filerefs can also be assigned
by using system commands. For details, see the SAS documentation for
your operating environment.