nerdexam
SAS_Institute

A00-211 · Question #50

After a SAS program is submitted, the following is written to the SAS log: 105 data WORK.JANUARY; 106 set WORK.ALLYEAR(keep=Product Month Quantity Cost); 107 if Month='JAN' then output WORK.JANUARY…

The correct answer is A. (drop Month Quantity Cost). See the full explanation below for the reasoning.

Question

After a SAS program is submitted, the following is written to the SAS log:

105 data WORK.JANUARY; 106 set WORK.ALLYEAR(keep=Product Month Quantity Cost); 107 if Month='JAN' then output WORK.JANUARY; 108 Sales=Cost * Quantity; 109 drop=Month Quantity Cost; ----- ERROR 22-322: Syntax error, expecting one of the following: !, !!, , *, **, +, -, , <=, <>, =, >, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=. 110 run; What data set option could be attached to WORK.JANUARY to replace the DROP statement that generated the error in the log?

Options

  • A(drop Month Quantity Cost)
  • B(drop Month, Quantity, Cost)
  • C(drop=Month, Quantity, Cost)
  • D(drop=Month Quantity Cost)

How the community answered

(21 responses)
  • A
    76% (16)
  • B
    10% (2)
  • C
    10% (2)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice