I have a column in my tables that has observations like this:
Date
200601
200602
200603
...
I want to convert them into a date format that can be used in proc forecast procedure ( so like 1JAN2006, 1FEB2006 etc.) How can i do that?
INPUT()
Informat -> YYMMN6
@pokepim wrote:
I have a column in my tables that has observations like this:
Date
200601
200602
200603
...
I want to convert them into a date format that can be used in proc forecast procedure ( so like 1JAN2006, 1FEB2006 etc.) How can i do that?
So i tried this
data new ;
set wej.vintage_css_3; /* the dataset that ahs the column */
newdate=input(fin_period,YYMMN6.) /*fin_period is that one with the dates to changfe */
run;
but it does not work 😕 it says its a syntax error
Post the log.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.