Multiple choice technology programming languages

dataset sales sno amt 10 100 15 200 30 300 proc print data = sales; where sno < 20; where sno = 30; run; what is the result?

  1. No observations

  2. sno amt { 30 300}

  3. sno amt { 10 100} {15 200}

  4. sno amt { 10 100} {15 200} {30 300}

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In SAS, when multiple WHERE statements appear in the same PROC step, only the last one executes. WHERE sno < 20 is overridden by WHERE sno = 30.