BookmarkSubscribeRSS Feed
myboys2
Fluorite | Level 6

 how do you add zeros to dates when reading in file?  For example the file i am reading has dates as 201433 should be 20140303 or 2014133 should be 20141303 or 2013313 should be 20140313

2 REPLIES 2
dkb
Quartz | Level 8 dkb
Quartz | Level 8

What will you do with 2014111 ?

Tom
Super User Tom
Super User

I would say that you can't.  You will probably need to get additional information to help decide.

 

You might say that 201433 could only be divided into 2014-3-3, but perhaps the missing digit is a 1 or a 2 instead of a 0.  Then the intended value could be 2014-03-13 or 2014-03-23.  Or perhaps the 4 is the typo and it is really in ddmmyy format so that the intended value is really 1933-12-20.

 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 670 views
  • 0 likes
  • 3 in conversation