Click on the Comments to view the Answers

Monday, January 25, 2010

Base 44

The contents of the raw data file TYPECOLOR are listed below:


---------10--------20--------30
daisyyellow


The following SAS program is submitted:


data flowers;
infile 'typecolor';
input type $ 1-5 +1 color $;
run;


Which one of the following represents the values of the variables TYPE and COLOR?
A. type color
daisy yellow


B. type color
daisy ellow


C. type color
daisyyellow (missing character value)


D. No values are stored as the program fails to execute due to syntax errors.

7 comments:

SASGuru said...

Answer: B
data flowers;
input type $ 1-5 +1 color $;
cards;
daisyyellow
;
run;

siva said...

This prg its read full data value
data flowers1;
input type $ 1-5 +1 color $;
cards;
daisy yellow
;
run;

Unknown said...

Good question for SAS Certification.

Dutchy said...

Answer is B:

data flowers1;
input type $ 1-5 +1 color $;
cards;
daisyyellow
;
(nb:a CARDS statement do not need 'run statement' as by DATALINES)

Output is Daisy Ellow
+1 means an extra position to the left, it is LIST INPUT (non modified list) so it is based on positions, not on delimiters.
Answer is B.

Dutchy said...

Oops: extra position to the left, must be to the right

Anonymous said...


Meta aims to provide a value effective, reliable and a major quality service to all or any or any our tutorial institutions, students, of us and our business associates. we tend to tend to unit proud that we tend to tend to unit praised by quite 3000 happy students for our direction and admission steering support services.Management admission in Abroad

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

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