nerdexam
SAS_Institute

A00-201 · Question #100

The following SAS DATA step is submitted: data sasdata.atlanta sasdata.boston work.portland work.phoenix; set company.prdsales; if region = 'NE' then output sasdata.boston; if region = 'SC' then…

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 sasdata.boston; if region = 'SC' then output sasdata.atlanta; if region = 'SW' then output sasdata.phoenix; if region = 'NW' then output work.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

(28 responses)
  • A
    4% (1)
  • B
    7% (2)
  • C
    11% (3)
  • D
    79% (22)

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice