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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 16 replies
  • 5914 views
  • 0 likes
  • 5 in conversation