Question 87: 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?

  1. Obs newdate qdate ddate

 1 APR152000 2 6

  1. Get all Questions and Answer from here
  2. You need to have paid subscription to access all questions
  3. Thanks for considering Python Certification Material

 Correct Answer : 4

 Exp: The QTR function returns a value of 1, 2, 3, or 4 from a SAS date value to indicate the quarter of the year in which a date value falls.

 Value Day of the Week

 1 Sunday

 2 Monday

 3

You can access to full explanation to question and answer from this page.