SAS_Institute
A00-211 · Question #93
The following SAS DATA step is submitted: data sasdata.atlanta sasdata.boston work.portland work.phoenix; set company.prdsales; if region = 'NE' then output boston; if region = 'SE' then output…
The correct answer is D. The data sets listed in the first two IF statements require a library reference. See the full explanation below for the reasoning.
Question
The following SAS DATA step is submitted:
data sasdata.atlanta sasdata.boston work.portland work.phoenix; set company.prdsales; if region = 'NE' then output boston; if region = 'SE' then output atlanta; if region = 'SW' then output phoenix; if region = 'NW' then output portland; run; Which one of the following is true regarding the output data sets?
Options
- ANo library references are required.
- BThe data sets listed on all the IF statements require a library reference.
- CThe data sets listed in the last two IF statements require a library reference.
- DThe data sets listed in the first two IF statements require a library reference.
How the community answered
(55 responses)- A7% (4)
- B18% (10)
- C4% (2)
- D71% (39)
Community Discussion
No community discussion yet for this question.