BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15
Hello
I import excel data into sas.
In excel there are some dates columns with numeric format.
When i import it into sas i define format ddmmyy10.
And get error dates that were not conerted correctly.
When i change format of dates in excel to mmddyy then all is fine in sas import.
The problem is that my client doesn't want to convert excel format into mmddyy and want to leave it with numeric format.
My question-How can I import into sas excel date fields with numeric format in excel??
2 REPLIES 2
ballardw
Super User

Please describe what you mean by "dates columns with numeric format". You probably should describe how you import the Excel data into SAS as well.

 

Your client doesn't need to know what you do as long as the results match the requirements.

 

 

Ronein
Onyx | Level 15
The orignal data in dates columns in excel is with numeric format. For example 9876 .when i report it from excel into sas i wamt to get numeric value with ddmmyy10. Format

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1120 views
  • 0 likes
  • 2 in conversation