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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 6675 views
  • 0 likes
  • 2 in conversation