BookmarkSubscribeRSS Feed
bmh
Calcite | Level 5 bmh
Calcite | Level 5
I am trying to read data from a .csv file. The date is displayed at dd/mm/yyyy hh:mm:ss.

I cannot find a SAS Data/time informat that reads the entire value in as one variable. I can read the date portion in correctly or the time portion, but not the whole thing together...any suggestions?

Thanks
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:

This is not an ODS question; it has more to do with how you read your data and what informat to use for date/timestamped values. Your best bet is to read up in the documentation on the ANYDTDTM informat (there are several "ANY" informats) or to contact Tech Support for specific examples of usage. You can contact Tech Support at:

http://support.sas.com/techsup/contact/submit_emits2.html

cynthia

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
  • 1 reply
  • 969 views
  • 0 likes
  • 2 in conversation