BookmarkSubscribeRSS Feed
SASPhile
Quartz | Level 8
9/1/09 09/01/09 9/01/2009 09/1/2009 09/01/2009
I'm being over ambitious here.Can we change the above date fomats to date9.?
The reason is the vendors who provide data are not consistent in the data structure.data changes every now and then./
1 REPLY 1
Patrick
Opal | Level 21
Is it that what you're after?

data want;
input dates anydtdte10.;
format dates date9.;
put dates;
datalines;
9/1/09
09/01/09
9/01/2009
09/1/2009
09/01/2009
;

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
  • 1 reply
  • 853 views
  • 0 likes
  • 2 in conversation