07-05-2016 11:48 AM
the original dataset has date variables are listed as 20051001, 20160705
would you please recommend how to convert them to sas date
FORMAT date date9.; date= input(date, yymmdd10.);
07-05-2016 12:05 PM
sorry, my previous message was not clear
i did the same way as you said,
with a new variable
but the new varabile has all missing values
the date format is yyyymmdd, like 20160705, i do not know how to convert
07-05-2016 12:17 PM
Use the yymmdd8. format in the input function.
Also post the log of the data step.
07-05-2016 04:50 PM
Possibly. It's more likely you had some other issue and running from the beginning fixed it.
This is especially true if your in the habit of naming your output the same at the dataset in your SET statement.
Data want; Set want; ... Run;