Click on the Comments to view the Answers

Monday, January 25, 2010

Base 49

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:


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:

SASGuru said...

Answer: A

Unknown said...

answer should have been couch.

Unknown said...

i m agree wid deepika...

Sudhanshu A Shilpi said...

SASGuru, please explain the answer as I believe it should be "couch".

Thnx.

Rujuta........ said...

ans should be couch as it is item2 variable in second observation

B(.)(.)g!3 said...
This comment has been removed by the author.
V.V. said...
This comment has been removed by the author.
V.V. said...

The answer should be couch

pal said...

yes ans should be couch bcz dsd consider ,, as missing value.

siva said...

Yaa yes couch only

SASGURU2 said...

I concur gents. Couch it is. This Sasguru character owes the lot of us a right good explanation

Hagere Ethiopia said...

I concur guys. The answer should be couch.

onmysunnyside said...

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....

SASnewbie said...

No need to argue - it is 'couch'. I just recreated the program and data and tested.

Unknown said...

Answer is D. Please test it yourselves and come back.

Unknown said...

Answer is couch

item1 item2 item3
chair table
chair couch table

anamika said...
This comment has been removed by the author.
Stevina Rumao said...

The value of item2 in first observation is missing but the value of second observation is couch.
I did run the program

Unknown said...

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


H. C. said...

couch

H. C. said...
This comment has been removed by the author.
Patrick said...

couch

delulrich said...

I also ran the program. The answer is couch. SASGuru isn't right this time.

CompleteExamCollection said...

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

SAS learner said...

Couch is not in the options.

Unknown said...

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



Technology Top Blogs On our way to 1,000,000 rss feeds - millionrss.com Hihera.com Blog Directory - OnToplist.com blogarama - the blog directory Blog Directory
Disclaimer

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.

Other brand and product names are trademarks of their respective companies.

This blog is not responsible for any kind of copyright violation. This blog just collects the links hosted or posted by other servers/people/search engines.The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site.If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to this email. We shall remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. We assure you that appropriate action will be taken off. Thank you