Filename Statement

Contents Index


SAS filename statements make it easier to refer to files stored on the computer system. The fileref takes the place of the longer system file specification which would otherwise be needed. This is mostly helpful if the same file will be referred to in many places in your program.

The form of the statement is

filename fileref 'system-filename';

Here fileref is any valid SAS name, and the system-filename is the full path and filename specification of the file in system specific form, e.g., in DOS this would typically be of the form c:\datadir\mydata.dat; in UNIX /datadirectory/mydata.dat.

Filename statements can be placed in the autoexec.sas file.


Contents Index

Copyright © 1997 by Jerry Alan Veeh. All rights reserved.