Question 26:

 A raw data record is listed below:

 --------10-------20-------30

 1999/10/25

 The following SAS program is submitted:

 data projectduration;

 infile 'file-specification';

 input date $ 1 - 10;

 run;

 Which one of the following statements completes the program above and computes the duration of the project in days as of today's

 date?

  1. duration = today( ) - put(date,ddmmyy10.);
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 4

 Exp :  : It cannot be a PUT function because it converts Numeric to Char values. For calculations we need Num variable => So INPUT function, also year is the first mentioned value so

 answer is D.

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