SAS 9.1 Companion For Unix Enivronments

To access an external file or device, you will need to specify its pathname or fileref in the appropriate SAS statements:

FILE

%INCLUDE

INFILE

In the SAS statement, refer to the file or device in one of two ways:

In most cases, you will want to use a fileref.

What is a Fileref?

A fileref is nickname that you assign to a file or device. You simply assign the fileref once, and then use it as needed. Filerefs are especially useful when

You can assign filerefs in the File Shortcuts window of the Explorer, with the FILENAME statement, with the FILENAME function, [1] or by defining the fileref as an environment variable.

[1] For a complete description of the FILENAME statement and the FILENAME function, see SAS Language Reference: Dictionary .

Категории