SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Raw Data
Referencing a Raw Data File


When you associate a fileref with an individual external file, you specify the fileref in subsequent SAS statements and commands.

Specifying a Fileref

To reference an external file with a fileref that points to an aggregate storage location, you specify the fileref followed by the individual filename in parentheses:

Specifying a Fileref


If the file has... You...
the expected default  extension, for example,
.dat used with the INFILE statement
can omit the extension when referencing the file.

      infile tax(refund)
an extension other than the expected extension,
for example, .sas
must include the extension and enclose the filename in quotes.

     infile tax ('net.sas')
no extension
must enclose the filename in quotes.

     infile tax ('income')



back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement