Hi Paige, Thank you for the reply. Yes I can confirm that, in this case, &t2 would be a Numeric / BESTD20. I have used the %local variables before, but I was trying to do this in such a way that I can just dynamically call the macro anywhere in open code and be guaranteed a result. I think your idea *would* work - I would probably just have to declare several %local variables up front (for as many rows as I need to generate later), and then do my top 20 or top 30 data sets with included %gepoch'ed return values manually specified within the individual data steps. To be fair, the entire solution as I have devised it may be a bit overly complex. Forgive me if I am generating more wood chips than wood. I am still relatively new to SAS. Thanks again
... View more