EXAMPLE A5 SAS Program

advertisement
EXAMPLE A5
SAS Program
data four;
input x1-x3;
x3= 3*x3-x1**2;
x4=sqrt(x2);
drop x1 x2;
datalines;
3 4 5
-2 9 3
. 16 8
-3 1 4
;
run;
proc print data=four;
title 'Flow of operations in a data step';
run;
SAS Log
1
2
3
4
5
6
7
options ls=80 nodate pageno=1;
data four;
input x1-x3;
x3= 3*x3-x1**2;
x4=sqrt(x2);
drop x1 x2;
datalines;
NOTE: Missing values were generated as a result of performing an operation on
missing values.
Each place is given by: (Number of times) at (Line):(Column).
1 at 4:9
1 at 4:12
NOTE: The data set WORK.FOUR has 4 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time
0.13 seconds
cpu time
0.02 seconds
12
13
14
15
16
;
run;
proc print data=four;
title 'Flow of operations in a data step';
run;
NOTE: There were 4 observations read from the data set WORK.FOUR.
NOTE: PROCEDURE PRINT used (Total process time):
real time
0.08 seconds
cpu time
0.01 seconds
SAS Output
Flow of operations in a data step
Obs
1
2
3
4
x3
x4
6
5
.
3
2
3
4
1
1
Download