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

Spoke a bit too soon.

SAS still isn't reading a TIME column back in as a Numeric time value if any of the values in that TIME column are missing (blank). It assigns the entire column as Text. I'll try a few more output options...

bnawrocki
Quartz | Level 8

Got around the missing TIME values by adding this code to force a 00:00 time value into the field if the time is missing, before writing it to Excel. That field now correctly IMPORTs from Excel back into SAS as a Time field.

if missing(MYTIME) then MYTIME= '0:0't;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 16 replies
  • 3835 views
  • 3 likes
  • 5 in conversation