BookmarkSubscribeRSS Feed
Kurt_Bremser
Super User

So each data item has its own line, and there are empty lines interspersed?

What does "BA" signify? Is it a kind of group value, or does it need to be discarded like the "contact_date" line?

Kurt_Bremser
Super User

Your datetime string looks different in every one of your posts.

Here, it has leading blanks and two blanks between date and time:

          6/30/2010  12:00:00 AM
          6/25/2010  12:00:00 AM
          5/6/2010  12:00:00 AM

But here, there are no leading blanks, and there's only one blank separating date and time:

BA

contact_date

1/1/2012 12:00:00 AM

12/23/2004 12:00:00 AM



contact_date 

03/04/2005 12:00:00 AM 



contact_date 

12/13/2004 12:00:00 AM

 So, what is it?

 

As has been requested repeatedly, open the text file with a TEXT EDITOR, and COPY/PASTE the contents into a code window. Only then will we be able to provide help with code that works with your data.

Norte that Excel files are useless for describing text files. Excel does all kinds of things when opening such files.

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
  • 16 replies
  • 9393 views
  • 0 likes
  • 5 in conversation