Multiple choice technology programming languages

8 PROC PRINT; 9 SET test; --- 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 10 RUN; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE PRINT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds

  1. it should be: Proc print; set=test;

  2. it should be: Proc print set=test;

  3. Complier is acting crazy

  4. SET option cannot be used with Proc

  5. None of the above

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

In SAS, PROC PRINT is a procedure step. The SET statement is a DATA step statement and cannot be used directly within a procedure. The correct approach would be to use a DATA step with SET to create a dataset, then use PROC PRINT on that dataset.