SAS Base Programming for SAS 9 — Question 9
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?
Answer options
- 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
Correct answer: D
Explanation
The correct answer is D because the syntax of the data step is incorrect; it cannot create a data set named TWO in both the temporary and permanent libraries simultaneously without proper separation. Therefore, no new data sets are created, resulting in an error. The other options incorrectly assume successful data set creation.