I'm wondering how I would write a do loop to take care of each observation: Call this dataset "above": N Date Amount Term 1 1/10/15 120 12 2 2/1/15 60 12 I originally had: data new; set above; do until(months=term); months+1; deferred_rev = amount/term; deferred_date=intnx('month',date,months-1,'same'); output; run; But, I want it to do this for each transaction to defer the revenue... in this event the months kept counting and it didn't treat each row as the subset. I have a feeling this needs to be a nested iterative do loop... The term represents how many months to the next billing event, however that means the total amount needs to be split over 12 months in this case. The output ideally would look like: N Date Amount Term Deferred_Date Months Deferred_Rev 1 1/10/15 120 12 1/10 1 10 2 1/10/15 120 12 2/10 2 10 3 4 5 ... 13 2/1/15 60 12 2/1/15 1 5 14 2/1/15 60 12 3/1/15 2 5 ...
... View more