Click on the Comments to view the Answers

Wednesday, January 27, 2010

Base 64

The following SAS program is submitted:

libname temp 'SAS-data-library';

data work.new;
set temp.jobs;
format newdate mmddyy10.;
qdate = qtr(newdate);
ddate = weekday(newdate);
run;

proc print data = work.new;
run;

The variable NEWDATE contains the SAS date value for April 15, 2000.
What output is produced if April 15, 2000 falls on a Saturday?

A. Obs newdate qdate ddate
1 APR152000 2 6

B. Obs newdate qdate ddate
1 04/15/2000 2 6

C. Obs newdate qdate ddate
1 APR152000 2 7

D. Obs newdate qdate ddate
1 04/15/2000 2 7

6 comments:

SASGuru said...

Answer: D

The WEEKDAY function produces an integer that represents the day of the week, where 1=Sunday, 2=Monday, ..., 7=Saturday.

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

D. Obs newdate qdate ddate
1 04/15/2000 2 7

siva said...

Answer D

sweety said...

QTR and weekday are functions where QTR returns the given date occurs in which quarter and weekday returns the numeric value of weekday(saturday=7)

siva said...

Answer D

Harsh Mohan 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