Multiple choice technology programming languages

Following program is submitted: * Read the data file testdatadat using list input DATA test; INFILE 'c:\MyRawData\testdata.dat'; INPUT Name $ Weight age; RUN; In SAS log we got: 1 * Read the data file ToadJump.dat using list input 2 DATA test; 3 INFILE 'c:\MyRawData\testdata.dat'; ------ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 4 INPUT Name $ Weight age; ----- 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 5 RUN; What is the problem?

  1. We need to use LIBREF to refer an input file

  2. We need to use double quotes instead of single quotes

  3. Comments are not proper

  4. Complier is at fault.

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

The error occurs because the comment line begins with an asterisk in column 1, which SAS interprets as a JCL statement (marked by the //* in the log). In SAS, comments starting with /* must be properly positioned. The error 180-322 indicates 'Statement is not valid or it is used out of proper order' because SAS treats the comment as JCL instead of a SAS comment.