BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
s_lassen
Meteorite | Level 14

If all your files are the same csv format (comma-delimited), I would use that in the infile statement, e.g.:

data PCEND;
  infile PCEND dsd delimiter=',' truncover;
  input TIME ?? yymmdd10. PCEND ??;
  if not misssing(TIME);
  TIME=put(TIME,yymmddn8.)+0;
run;

I put the question marks in the input statement to avoid warnings in the log when reading the first one or two lines with headers.

the "if not missing(TIME)" line removes the header lines from the output.

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 15 replies
  • 3791 views
  • 0 likes
  • 7 in conversation