In the FILENAME statement,
you can concatenate directory names and use the fileref to refer to
any file within those directories:
FILENAME fileref ("directory-1" ... "directory-n");
When you concatenate
directory names, you can use aggregate syntax to refer to a file
in one of the directories. For example, assume that the Report.sas
file resides in the directory associated with the MYPROGS environment
variable. When SAS executes the following code, it searches for Report.sas
in the pathnames that are specified in the FILENAME statement and
it executes the program.
filename progs ("$MYPROGS" "/users/mkt/progs");
%inc progs(report);
SAS searches the pathnames
in the order specified in the FILENAME statement until
-
-
it encounters a filename in the
list of pathnames that you specified in the FILENAME statement.