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.
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 lock in 2025 pricing—just $495!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.