Which statement wil...
 
Notifications
Clear all

Which statement will create the new variable Ship_date_char as a character value with a format such as “February 2, 2009”?

1 Posts
1 Users
0 Likes
246 Views
(@tivisantwan)
Posts: 716
Noble Member
Topic starter
 

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”?

  • A . Ship_date_char = input(Ship_date, date9.,worddate20.);
    B. Ship_date_char = put(Ship_date, date9.,worddate20.);
    C. Ship_date_char = input(Ship_date,worddate20.);
    D. Ship_date_char = put(Ship_date,worddate20.);

Show Answer Hide Answer

Suggested Answer: D
 
Posted : 05/02/2023 6:18 am

Latest SAS Institute A00-211 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: