SAS Base (44)

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

Check Answer
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)

One thought on “SAS Base (44)

Leave a Reply

Your email address will not be published. Required fields are marked *