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
;

AI Navigator GIF.gif


Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.

Check it out on Microsoft Marketplace →

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