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

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 

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

DTMONYY is for datetime variable you want MONYY for your date(no time) variable.

View solution in original post

3 REPLIES 3
data_null__
Jade | Level 19

DTMONYY is for datetime variable you want MONYY for your date(no time) variable.

pcfriendly
Calcite | Level 5

Thanks data_null_; & Arthur,

For some reason I didn't notice the option to select 'Date' instead of 'Date Time' ...

Cheers Smiley Happy

art297
Opal | Level 21

Why not select monyy7.  ?  The format you selected expects a datetime field.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 4337 views
  • 3 likes
  • 3 in conversation