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
SAS Super FREQ
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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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