Question 2:
The following SAS DATA step is submitted:
data sasdata.allahabad
sasdata.bhilai
work.portblair
work.pune;
set company.prdsales;
if region = 'NE' then output bhilai;
if region = 'SE' then output allahabad;
if region = 'SW' then output pune;
if region = 'NW' then output portblair;
run;
Which one of the following is true regarding the output data sets?
- No library references are required
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Correct Answer : 4
Exp : SAS automatically assigns the lib Work when a lib is not specified. If you want to assign your data set to a libname other than Work, you must explicitly define (point to a location in a LIBNAME statement) the library before it can be assigned
output bhilai; (sasdata.allahabad)
output allahabad; (sasdata.bhilai)
You can access to full explanation to question and answer from this page.