Syntax, DATA step for
reading a single data set:
DATA SAS-data-set;
SET SAS-data-set;
<...more
SAS statements...>
RUN;
|
libname sasuser "C:Users
amesasuser";
libname Men50 "C:Users
amesasuserMen50";
data Men50.males;
set sasuser.admit;
where sex='M' and age>50;
run;
9226 data Men50.males; 9227 set sasuser.admit; 9228 where sex='M' and age>50; 9229 run; NOTE: There were 3 observations read from the data set SASUSER.ADMIT. WHERE (sex='M') and (age>50); NOTE: The data set MEN50.MALES has 3 observations and 9 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds
proc print data=Men50.males; title "Men Over 50"; run;
3.12.163.180