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?
- duration = today( ) - put(date,ddmmyy10.);
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- 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.