My reframe of your Q is: I have to write a macro whose only purpose is to do one thing, once. and my answer is: Macros are all about repetition. So, yes, your macro does have one of my two criteria for writing a macro 1. %do 2. %if but saving and finding a reusable subroutine is as much work as saving and finding a non-reusable macro so my vote is for the reusable subroutine. And, why are you creating an array of global macro variables in the first place? They can be %local within the macro that creates and uses them and are discarded when the macro finishes. The context of your Q is -- in my opinion -- not good programming practice. Ron Fehd better==less maven
... View more