SAS_Institute
A00-211 · Question #230
Given the SAS data set WORK.ORDERS: Ship_date is a numeric variable containing a SAS data value. A programmer would like to create a new character variable Ship_date-char that represents the ship…
The correct answer is D. Ship_date_char = put(Ship_date,worddate20.). See the full explanation below for the reasoning.
Question
Given the SAS data set WORK.ORDERS:
Ship_date is a numeric variable containing a SAS data value. A programmer would like to create a new character variable Ship_date-char that represents the ship date as a character string, such as "February 2,2009' Which statement will create the new variable Ship_date_char as a character value with a format such as "February 2, 2009"?
Options
- AShip_date_char = input(Ship_date, date9.,worddate20.);
- BShip_date_char = put(Ship_date, date9.,worddate20.);
- CShip_date_char = input(Ship_date,worddate20.);
- DShip_date_char = put(Ship_date,worddate20.);
How the community answered
(37 responses)- A16% (6)
- B5% (2)
- C8% (3)
- D70% (26)
Community Discussion
No community discussion yet for this question.