O'Reilly logo

SAS Certification Prep Guide, 4th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a FILENAME Statement

Overview

You already know that you can use a FILENAME statement to associate a fileref with a single raw data file. You can also use a FILENAME statement to concatenate raw data files by assigning a single fileref to the raw data files that you want to combine.
General form, FILENAME statement:
FILENAME fileref ('external-file1' 'external-file2' ...'external-filen');
Here is an explanation of the syntax:
fileref
is any SAS name that is eight characters or fewer.
external-file
is the physical name of an external file. The physical name is the name that is recognized by the operating environment.
CAUTION:
All of the file specifications must be enclosed in one set of parentheses.
When the fileref ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required