NOTE- Underscore represent blank space
The contents of the raw data file PRODUCT are listed below:
--------10-------20-------30
24613____$25.31
The following SAS program is submitted:
data inventory;
infile 'product';
input idnum 5. @10 price;
run;
Which one of the following is the value of the PRICE variable?
A. 25.31
B. $25.31
C. . (missing numeric value)
D. No value is stored as the program fails to execute due to errors.
9 comments:
Answer: C
Need to use the informat comma6.2 to read the value properly.
data inventory;
input idnum 5. @10 price comma6.2;
cards;
24613 $25.31
;
run;
Answer is (C).
Because program creates the data set and read the first value, however, fails to read the value for price.
answer is A
data inventory;
input idnum 5. @10 price comma6.2;
cards;
24613 $25.31
;
run;
if anybody have latest dumps of A00-211 exam, can you please share with me.
Thanks in Advance!
0.31
Answer is C, becaus price has a default type, which is numeric 8 (8.). Space is converted to missing numeric.
Regarding C
If informat = Dollar6.2 or Comma6.2 then it works. In both cases, giving the same result.
So heading spaces could be concidered as numeric if you use the correct INFORMAT.
For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html
Post a Comment