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;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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