Well, I can think of several possible answers to this, but it very dependant on what you are doing outside that bit of code. For instance, from the code given I do not see a reason why you would need to be doing this in macro code, it doesn't seem generic enough for such a thing. Try moving it back to standard SAS, then you have full functionality. Without the surrounding code its hard to say, but I assume you are dealing with year part of a date?
... View more