SAS_Institute
A00-211 · Question #69
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…
The correct answer is D. duration = today( ) - input(date,yymmdd10.). See the full explanation below for the reasoning.
Question
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?
Options
- Aduration = today( ) - put(date,ddmmyy10.);
- Bduration = today( ) - put(date,yymmdd10.);
- Cduration = today( ) - input(date,ddmmyy10.);
- Dduration = today( ) - input(date,yymmdd10.);
How the community answered
(30 responses)- A13% (4)
- B3% (1)
- C10% (3)
- D73% (22)
Community Discussion
No community discussion yet for this question.