SAS Certified Base Programmer 123 Questions (122)
The contents of the raw data file AMOUNT are listed below:
----|----10---|----20---|----30 $1,234
The following SAS program is submitted:
data test; infile'amount'; input @1 salary 6.; if _error_ then description='Problems'; else desription='No Problems'; run;
Which one of the following is the value of the DESCRIPTION variable?
A. Problems
B. No Problems
C. ‘ ‘ (missing character value)
D. The value can not be determined as the program fails to execute due to errors.
Topics:
SAS Base Questions |
7 Comments »
A
I think the “p” in “problems” in the codes should be uppercase.
@2 susan: thanks, it’s typo.
_error_=1
(1 is true)
If true then execute …;
student
I think its b.
No,its a there is a dollar sign in salary