SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Raw Data
Writing the DATA Step Program


Naming the Data Set

The DATA statement indicates the beginning of the DATA step and names the SAS data set to be created.


To do this...   Use this SAS statement...
Reference SAS data librarylibname clinic 'c:\users\may\data';
Reference external filefilename tests 'c:\users\tmill.dat';
Name SAS data setDATA statement

General form, basic DATA statement:
DATA SAS-data-set;

where SAS-data set is the name (libref.filename) of the data set to be created.


Remember that the SAS data set name is a two-level name.  For example, the two-level name Clinic.Admit specifies that the data set Admit is stored in the permanent SAS data library that is assigned the libref Clinic.

Two-Level Name


back||next


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

Terms of Use & Legal Information | Privacy Statement