Hi,
I'm using theQuery builder in SAS Enterprise Guide 4.3 & have a date field in my data in the 'DDMONYYYY' format which I want to change to 'MONYY' format.
When I use the Query builder & change the format to 'DTMONYY.w', the results for all rows is 'JAN60'?
Can anyone advise what's happening here?
Thanks
DTMONYY is for datetime variable you want MONYY for your date(no time) variable.
DTMONYY is for datetime variable you want MONYY for your date(no time) variable.
Thanks data_null_; & Arthur,
For some reason I didn't notice the option to select 'Date' instead of 'Date Time' ...
Cheers
Why not select monyy7. ? The format you selected expects a datetime field.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.