SAS_Institute
A00-280 · Question #40
Which statement correctly creates a SAS date variable from a character variable?
The correct answer is A. sasdate = input(chardate,date9.). See the full explanation below for the reasoning.
Question
Which statement correctly creates a SAS date variable from a character variable?
Options
- Asasdate = input(chardate,date9.);
- Bsasdate = 'chardate';
- Csasdate = put(chardate,date9.);
- Dsasdate = date(chardate,date9.);
How the community answered
(38 responses)- A84% (32)
- B5% (2)
- C3% (1)
- D8% (3)
Community Discussion
No community discussion yet for this question.