I am getting (.) in my results, now I know this has something to do with the date and creating a numeric value.
How do I get rid of the (.)? I am using the SAS Plug in for excel and this is giving me fits when I go to use a Pivot.
I would rather if there is no value to just leave it blank.
here is the partial code:
AVG(DATEPART(S.On_Block_Dt) - DATEPART(S.Title_Rcvd_Dt)) AS Title_Received_to_On_Block,
AVG(DATEPART(S.Sale_Date) - DATEPART(S.Title_Rcvd_Dt)) AS Title_Received_to_Sold,
AVG(DATEPART(S.Title_Rcvd_Dt) - DATEPART(S.Secured_Dt)) AS Secured_to_Title_Received,
AVG(DATEPART(S.Assigned_Dt) - DATEPART(S.Grounding_Dt)) AS Grounded_to_Assigned,
I am using PROC SQL to do this.
Missing is a period for numerics, not a blank. Even if you add in conditional logic to not calculate the value, it would still be missing and a period.
Since you're doing an average or summarization I'm suprised you're ending up with missing, unless what happens is, if you have any value missing it's being set to missing. Or you're missing a lot of data.
Try using option missing=' '; before writing to Excel.
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!
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.
Ready to level-up your skills? Choose your own adventure.