SAS Base Programming for SAS 9 — Question 45
The following SAS program is submitted:
data temp.x;
set sasuser.y;
run;
What must be submitted prior to this SAS program for the program to execute successfully?
Answer options
- A. A LIBNAME statement for the libref TEMP only must be submitted.
- B. A LIBNAME statement for the libref SASUSER only must be submitted.
- C. LIBNAME statements for the librefs TEMP and SASUSER must be submitted.
- D. No LIBNAME statement needs to be submitted.
Correct answer: A
Explanation
The correct answer is A, as the program is attempting to write to the TEMP library, which requires a LIBNAME statement to define it. Option B is incorrect because the SASUSER library is being read from, not written to. Options C and D are also incorrect since only the TEMP libref needs to be defined for the program to execute successfully.