data sasuser.admit2; set sasuser.admit; where age>39; run; proc print data=sasuser.admit2; run;
Statements
|
Sample Program Code
|
---|---|
DATA statement
|
data sasuser.admit2; |
SET statement
|
set sasuser.admit; |
Additional programming
statements
|
where age>39; |
RUN statement
|
run; |
PROC PRINT statement
|
proc print data=sasuser.admit2; |
RUN statement
|
run; |
data sasuser.admit2; set sasuser.admit; where age>39; run; proc print data=sasuser.admit2; run;
5 data sasuser.admit2; 6 set sasuser.admit; 7 where age>39; 8 run; NOTE: There were 10 observations read from the data set SASUSER.ADMIT. WHERE age>39; NOTE: The data set SASUSER.ADMIT2 has 10 observations and 9 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 9 proc print data=sasuser.admit2; NOTE: Writing HTML Body file: sashtml.htm 10 run; NOTE: There were 10 observations read from the data set SASUSER.ADMIT2. NOTE: PROCEDURE PRINT used (Total process time): real time 0.35 seconds cpu time 0.24 seconds
data sasuser.admit2; set sasuser.admit; where age>39; run;
data sasuser.admit2; set sasuser.admit; where age>39; run; proc print data=sasuser.admit2; run;
proc freq data=sashelp.cars; table origin*DriveTrain; run;
proc copy in=sasuser out=work; select admit; run;
11 proc copy in=sasuser out=work; 12 select admit; 13 run; NOTE: Copying SASUSER.ADMIT to WORK.ADMIT (memtype=DATA). NOTE: There were 21 observations read from the data set SASUSER.ADMIT. NOTE: The data set WORK.ADMIT has 21 observations and 9 variables. NOTE: PROCEDURE COPY used (Total process time): real time 0.02 seconds cpu time 0.01 seconds