Chapter Contents

Previous

Next
Moving and Accessing SAS Files across Operating Environments

Creating a Simple Data Set

If you choose to experiment, you can create several simple data sets in a library. Here is a sample SAS program that creates a data set named GRADES:

data grades;
  input student $ test1 test2 final;
  datalines;
Fred 66 80 70
Wilma 97 91 98
;
proc print data=grades;
run;
Here is the output:
        The SAS System
Thu                  10:54 Wed, October 20, 1999
OBS   STUDENT  TEST1  TEST2   FINAL
1      Fred     66      80      70
2      Wilma    97      91      98


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.