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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 821 views
  • 0 likes
  • 2 in conversation