Click on the Comments to view the Answers

Wednesday, January 27, 2010

Base 63

The following SAS program is submitted:

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

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


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

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

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

shaidacious said...

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

RS said...

study the ans is very important

Harsh Mohan said...

For latest and updated SAS certification dumps in PDF format contact us at
Refer our blog for more details

Post a Comment

Technology Top Blogs On our way to 1,000,000 rss feeds - Blog Directory - blogarama - the blog directory Blog Directory

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