Click on the Comments to view the Answers

Wednesday, January 27, 2010

Q16

The SAS data set QTR1_REVENUE is listed below:

destination revenue
YYZ 53634
FRA 62129
FRA 75962
RDU 76254
YYZ 82174

The following SAS program is submitted:

proc sort data = qtr1_revenue;
by destination descending revenue;
run;

Which one of the following represents the first observation in the output data set?

A. destination revenue
YYZ 82174

B. destination revenue
YYZ 53634

C. destination revenue
FRA 62129

D. destination revenue
FRA 75962

5 comments:

SASGuru said...

Answer: D
Try the code…
data QTR1_REVENUE ;
input destination $ revenue;
cards;
YYZ 53634
FRA 62129
FRA 75962
RDU 76254
YYZ 82174
;
run;

proc sort data = qtr1_revenue;
by destination descending revenue;
run;
destination revenue

FRA 75962
FRA 62129
RDU 76254
YYZ 82174
YYZ 53634

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

D. destination revenue
FRA 75962

siva said...

Answer D

Ryan Lo said...

Answer is D.

Please see SASGuru's comment.

Please note, there is NO keyword 'ASCENDING'.

kinnari said...

Answer is D

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