Thanks, I'll do the appending and counting a bit differently from that based on complexity but I'll probably switch my approach from macro to the SET statement approach you posted previously.
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!