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 ...

Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.