I have two data sets.... one contains Billing Information and the other contains payments / adjustments. The output of a join for the two sets has created a set of records where there have been no payments or adjustments causing the two fields (Cash and Adjustments) be flagged as Missing (.) on those records. In order to calcluate Total AR as well as the current Invoice Balance, I need the Missing (.) to show as zero (0). I've read several posts on this topic and thought I had a solution, however I'm getting a mixed bag of results with my variations: IFN(t1.'Cash Applied'n > 0 or t1.'Cash Applied'n < 0, t1.'Cash Applied'n, 0, 0) - Populates accurate original data (both positive and negative) when it was NOT missing but does NOT convert missing (.) to zero (0). IFN(t1.'Cash Applied'n > 0, t1.'Cash Applied'n, 0, 0) - Populates original data (only if positive - negatives are lost) AND successfully converts missing (.) to zero (0). IFN(t1.'Cash Applied'n < 0, t1.'Cash Applied'n, 0, 0) - Populates original data (only if negative - positives are lost) but does NOT convert missing (.) to zero (0). I've even tried pulling negatives out and adding them back after a successful positive conversion, but it then reverts the value back to missing. Essentially, the missing (.) to zero (0) conversion works great for positive numbers, and fails anytime I try to handle the negative values. Any feedback you guys can provide would be greatly appreciated. SAS EG 7.1 (64 bit)
... View more