Wednesday 7 September 2011

The DATA step.

SAS has constructed the Data step so that an analysis can be performed from beginning to end without the
use of any external information, if this is convenient for the user.
The format for in stream data entry is as follows.
data helptry1;
input var1 var2 var3 id;
cards;
76 54 55 001
98 65 23 002
88 67 12 003
87 34 65 004
. . . .
. . . . (more data here)
. . . .
78 42 81 099
;
run;
These statements will create a data set called LIBNAME.WORK with 99 observations and four variables.