SAS Base Certification Practice – Question 4

Question 4: The contents of the raw data file AMOUNT are listed below:
 

--------10-------20-------30
$1,234

The following SAS program is submitted:

1
2
3
4
data test;
infile 'amount';
input @1 salary 6.;
run;

Which one of the following is the value of the SALARY variable?

Options:

A. 1234
B. 1,234
C. $1,234
D. . (missing numeric value)

*This blog is not affiliated with SAS or the SAS Institute. All answer logs, data sets, output, and commentary are provided by this blog.

Correct Answer

Incorrect Answer

Click to see Answer Explanation below

thanks for your support

1 Comment

    toan Oct 05, 2016

    Similar to question #2, can we use the informat COMMA6. instead as it removes the comma and $ symbol?

    Reply

Leave a Comment

Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let us have a personal and meaningful conversation instead.