SAS_Institute
A00-201 · Question #92
In the following SAS program, the input data files are sorted by the NAMES variable: libname temp 'SAS-data-library'; data temp.sales; merge temp.sales work.receipt; by names; run; Which one of the…
The correct answer is B. The program executes successfully and a permanent SAS data set is created. See the full explanation below for the reasoning.
Question
In the following SAS program, the input data files are sorted by the NAMES variable:
libname temp 'SAS-data-library';
data temp.sales;
merge temp.sales
work.receipt;
by names;
run;
Which one of the following results occurs when this program is submitted?
Options
- AThe program executes successfully and a temporary SAS data set is created.
- BThe program executes successfully and a permanent SAS data set is created.
- CThe program fails execution because the same SAS data set is referenced for both read and write operations.
- DThe program fails execution because the SAS data sets on the MERGE statement are in two different libraries.
How the community answered
(41 responses)- A5% (2)
- B83% (34)
- C10% (4)
- D2% (1)
Community Discussion
No community discussion yet for this question.