m*******r 发帖数: 10 | 1 95题中的第38题
38.Given the SAS data set WORK.ONE:
X Y Z
- - --
1 A 27
1 A 33
1 B 45
2 A 52
2 B 69
3 B 70
4 A 82
4 C 91
The following SAS program is submitted:
data WORK.TWO;
set WORK.ONE;
by X Y;
if First.Y;
run;
proc print data=WORK.TWO noobs;
run;
Which report is produced?
A.
X Y Z
-- -- --
1 B 45
2 A 52
2 B 69
3 B 70
4 A 82
4 C 91
B.
X Y Z
-- -- --
1 A 27
1 B 45
2 A 52
2 B 69
3 B 70
4 A 82
4 C 91
C.
X Y Z
-- -- --
1 A 33
1 B 45
2 A 52
2 B 69
3 B 70
4 A 82
4 C 91
D. The PRINT procedure fails because the data set WORK.TWO is not created in
the DATA step. | T******o 发帖数: 136 | 2 B.
first.y is 1 when a new value of y is scanned. also, whenever first.x is 1,
first.y will be 1. | i****w 发帖数: 329 | 3 work.one sort 过了吗?假如没sort过,work.two生成不了,因为by x y; statement
会报错。
【在 m*******r 的大作中提到】 : 95题中的第38题 : 38.Given the SAS data set WORK.ONE: : X Y Z : - - -- : 1 A 27 : 1 A 33 : 1 B 45 : 2 A 52 : 2 B 69 : 3 B 70
|
|