The following SAS program is submitted:
data ONE TWO SASUSER.TWO;
set SASUSER.ONE;
run;
Assuming that SASUSER.ONE exists, how many temporary and permanent SAS data sets are created?
A. 2 temporary and 1 permanent SAS data sets are created
B. 3 temporary and 2 permanent SAS data sets are created
C. 2 temporary and 2 permanent SAS data sets are created
D. there is an error and no new data sets are created
Answer: A
注解:DATA statement中可以同时建立多个data set,以WORK为libref或者省略libref的为临时data set,保存在WORK library下。指定其它libref的,比如题目中的SASUSER,则在该library下建立永久data set。更多关于DATA statement建立多个data set,可以参考SAS Base (35)。
The answer should be D, I think. :-))
Do you know why the answer is D?
Based on the solution or explanation from Crackman, this problem is different from yours where the first line of code :”data ONE TWO SASUSER.TWO;“ has no semicolon.