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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 10005 views
  • 0 likes
  • 5 in conversation