Click on the Comments to view the Answers

Wednesday, January 27, 2010

Base 63

The following SAS program is submitted:

data work.report;
set work.sales_info;
if qtr(sales_date) ge 3;
run;

The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and the variable SALES_DATE which contains a SAS date value for each of the twelve months.

How many of the original twelve observations in WORK.SALES_INFO are written to the WORK.REPORT data set?

A. 2
B. 3
C. 6
D. 9

10 comments:

SASGuru said...

Answer C

The qtr values of each of the months 7,8,9,10,11,12 is 3,3,3,4.4,4..Therefore 6 obs in the final dataset…

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

C. 6

siva said...

Answer 6

Statistical Computing with SAS and R said...

I didn't understand still how you agree on 6?

prakhar said...

answer is 6 .1 observation for each of the month, and 1 sas date value for every month so, only 12 sas date values, in short there are only 12 observations.

subseting condition if qtr(sales_date) ge 3 will give 2 quarters, quarter=3 and quarter=4. each quarter has 3 months therefore 6 months

Amit Rathore said...

Ans C.
First 6 months = 2 quarters which will fail the if condition. Only from July qtr(sales_date)>=3.So only 6 observations will be written to the dataset.

Unknown said...

how come 6 is the answer. I think answer is 3 coz there are 4 quaters and only one quarter greater than 3 so 3 obswervations is the right answer.

Unknown said...

regrets that is greater than or equal to. I missed that.
Answer is 6.

RS said...

study the ans is very important

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