BookmarkSubscribeRSS Feed
lloraine
Calcite | Level 5

I have SAS Enterprise Guide 3.4.  I am trying to change the date format to 1/1/2013.  Every format I pick the results are ********.  Is there another place to change the date format to 1/1/2013 -  MMDDYYYYY

6 REPLIES 6
ballardw
Super User

Sometimes the ******** shows up because the display columns are to narrow to display the 10 characters of the formatted result. If you can create a wider column to display the values that could correct the issue. You don't mention where you are seeing this so only a guess.


lloraine
Calcite | Level 5

The column is wide enough.  I am in the query builder and I click on a date field and it gives me the option to change format.  Presently, there is nothing in the format and the results show 01MAR2013:00:00:00.  I want to show 3/1/2013 but when I choose one of the other date formats, all I get is ****** no matter how big the column.

Reeza
Super User

You have a date time variable, not a date variable.

You need a format such as dtdate9.  or dtmmddyy10. to show the date.

lloraine
Calcite | Level 5

dtmmddyy10 is not one of the options in the dropdown list under the date time

ChrisHemedinger
Community Manager

Here are some to try on for size:

IS8601DN10.

MDYAMPM27.

DTDATE9.

Beyond that, you have more date-related formatting options with a DATE variable, which you can get by running the data through Query Builder and calculate a new column with the DATEPART() function.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
lloraine
Calcite | Level 5

I did finally use a calculated column - put(datepart(cl_eff_frm_dt), mmddyy10.)

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
  • 6 replies
  • 1919 views
  • 0 likes
  • 4 in conversation