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

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
Pyrite | Level 9
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-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!

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