Reading a Single Data Set
sasuser.admit
contains health information
about patients in a clinic, their activity level, height and
weight. Suppose you want to create a small data set containing all
the men in the group who are older than fifty.admit
is stored and then the library in which you want
to store the males
data set. Then you write a DATA
step to read your data and create a new data set.
General form, basic DATA step
for reading a single data set:
DATA
SAS-data-set;
SET SAS-data-set;
<more SAS
statements>
RUN;
|
Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.