DATA Step, Macro, Functions and more

date9. format

Reply
Super Contributor
Posts: 647

date9. format

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./
Respected Advisor
Posts: 3,894

Re: date9. format

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
;
Ask a Question
Discussion stats
  • 1 reply
  • 100 views
  • 0 likes
  • 2 in conversation