Previous Page | Next Page

Using External Files and Devices

Introduction to Using External Files and Devices under OpenVMS


What Are External Files?

External files are files whose format is determined by the operating environment rather than by SAS. These files are not managed by SAS. External files include raw data files, files that contain SAS programming statements, and procedure output files.


Techniques for Accessing External Files

The following SAS statements and functions are used to access external files on disk:

FILENAME statement and FILENAME function

associate a fileref with an external file that you want to use for input or output. (For more information, see FILENAME Statement: OpenVMS and FILENAME Function: OpenVMS.)

INFILE statement

opens an external file for reading data lines. (For more information, see INFILE Statement: OpenVMS.)

FILE statement

opens an external file for writing data lines. (For more information, see FILE Statement: OpenVMS.)

%INCLUDE statement

opens an external file for reading SAS statements. (For more information, see %INCLUDE Statement: OpenVMS.)

You also specify external files in various windowing environment fields (for example, as a file destination in the Results window or as a source input in an INCLUDE command).

Previous Page | Next Page | Top of Page