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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.