It is a little hard to figure out the purpose of the different steps. But it seems to me that should move the call to zero out the numeric variables BEFORE the step where you are converting them to character variables. %_CONVERT_MV_TO_ZERO(cur_wk_fig) data cur_wk_fig; length relationship $5; set cur_wk cw_totals; cwhapct=divide(cwhapart,cmeligcount); eligc = put(cmeligcount,comma12.); hapct = put(cwhapct,percent12.1); part= put(cwhapart, comma12.); run; Or maybe even before take the sums.
... View more