01-10-2018 11:05 AM
What exactly is it you need help with? Follow the guidance below the post button to post a full question. Post example test data in the form of a datastep, and show what you want out at the end. At a rough guess from what you posted it looks like an proc iml challenge, not a macro one you want.