Click on the Comments to view the Answers

Wednesday, January 20, 2010

options obs=

options obs=max;

data x;
do i=1 to 100;
a=i;
output;
end;
run;

options obs=20;

data a;
set x;
run;

options obs=100;

data b;
set a;
run;

Datasets a and b have ____and ____ observations respectively...

a) 20 20
b) 20 100
c) 100 20
d) 100 100

Check the comments for answers...

3 comments:

SASGuru said...

Since obs=max to start with

Dataset x would have 100 obs

obs is set 20;
so Dataset A would have 20;

obs is set to 100 now;
Dataset B will have 20 observations only since A has only 20 obs even though the options is set to 100

Unknown said...

Answer A

Dhammadip said...

A

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