SAS_Institute
A00-281 · Question #44
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'd;
- Csasdate = put(chardate,date9.);
- Dsasdate = date(chardate,date9.);
How the community answered
(19 responses)- A84% (16)
- C5% (1)
- D11% (2)
Community Discussion
No community discussion yet for this question.