BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jonatan_velarde
Lapis Lazuli | Level 10

Good morning SAS users:

 

I have imported some data from excel to SAS and it looks to be hard to fix this, but the dates are now numeric, the interesting is that in the propieties SAS says that this column is made of characters:

 

How can y caonver this column into date format (mmddyy10.)

 

 

Thank you very much

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

I would generally start by saving the Excel as CSV and import that as import direct from Excel is prolematic. Search this forum to see how many questions there are about Excel and import.

 

Barring that, you would have to show us exactly what the current character values look like as it will likely depend on using one of many formats to do the proper translation.

 

View solution in original post

2 REPLIES 2
ballardw
Super User

I would generally start by saving the Excel as CSV and import that as import direct from Excel is prolematic. Search this forum to see how many questions there are about Excel and import.

 

Barring that, you would have to show us exactly what the current character values look like as it will likely depend on using one of many formats to do the proper translation.

 

jonatan_velarde
Lapis Lazuli | Level 10
thank you Ballardw:

I will still using old school importing ahahaha, save as CSV, space separated file and format it in the input statement.

thanks a lot my friend

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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