The contents of the raw data file FURNITURE are listed below:
--------10-------20-------30
chair,,table
chair,couch,table
The following SAS program is submitted:
chair,,table
chair,couch,table
The following SAS program is submitted:
data stock;
infile 'furniture' dsd;
input item1 $ item2 $ item3 $;
run;
Which one of the following is the value of the variable named ITEM2 in the second observation of the output data set?
A. table
B. ,table
C. . (missing numeric value)
D. ' ' (missing character value)
26 comments:
Answer: A
answer should have been couch.
i m agree wid deepika...
SASGuru, please explain the answer as I believe it should be "couch".
Thnx.
ans should be couch as it is item2 variable in second observation
The answer should be couch
yes ans should be couch bcz dsd consider ,, as missing value.
Yaa yes couch only
I concur gents. Couch it is. This Sasguru character owes the lot of us a right good explanation
I concur guys. The answer should be couch.
Answer D.
This is the raw data file. The rule in SAS is if data from the raw data file, the first observation is set to missing and then fills up the data. Then, with the second observation, it sets to missing all values again....
No need to argue - it is 'couch'. I just recreated the program and data and tested.
Answer is D. Please test it yourselves and come back.
Answer is couch
item1 item2 item3
chair table
chair couch table
The value of item2 in first observation is missing but the value of second observation is couch.
I did run the program
data stock;
infile datalines dsd;
input item1 $ item2 $ item3 $;
datalines;
chair,,table
chair,couch,table
;
run;
proc print data=stock;run;
Obs item1 item2 item3
1 chair table
2 chair couch table
couch
couch
I also ran the program. The answer is couch. SASGuru isn't right this time.
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
Couch is not in the options.
Its Table, since there isn't a comma after the first table in obs 1, its reading the value as Table Chair.
Post a Comment