Dawa,
It can't. If a line of code contains
any & macros, that line is not parsed/compiled until runtime, because the actual string being substituted is not known until then.
>That makes very much sense to me. But it seems to me that it should catch the error on line 6 in the code below regardless of macro subtitution of the alias name. Clearly, a comma right in front of FROM is incorrect syntactically.