BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RPYee
Quartz | Level 8

Using the GUI in Enterprise Guide. I want to create a computed field, based on a datetime field, that will show simply "MMM-YY"  for grouping purposes.  I can only find help for basic SAS programming, so I'm at a loss. 

Thanks, in advance, for your help!!

Rita Yee

Project Engineer

FedEx Express

___________________________________
The fact that I ask for help simply means I am inexperienced and under-educated. Please don't assume I am incompetent and uneducated.
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Compute Column

 

DATEPART() to obtain date.

 

Apply a format, MONYY7. for example? I don't see one that exactly matches what you want, so you may need to create your own. 

https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0p2fmevfgj...

 

 

View solution in original post

2 REPLIES 2
Reeza
Super User

Compute Column

 

DATEPART() to obtain date.

 

Apply a format, MONYY7. for example? I don't see one that exactly matches what you want, so you may need to create your own. 

https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0p2fmevfgj...

 

 

RPYee
Quartz | Level 8

I made that way more difficult than it needed to be 🙂  That "format" step always gets me.  I'm always doing things twice because I forget to format it properly on the front end.   Sigh

 

THANKS AGAIN 🙂

___________________________________
The fact that I ask for help simply means I am inexperienced and under-educated. Please don't assume I am incompetent and uneducated.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 7606 views
  • 0 likes
  • 2 in conversation