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.

 

 

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