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.

sas-innovate-2024.png

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.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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