Is there an option set at invocation or in an AUTOEXEC file or at the top of the program to use an external (to your program) macro library? For example:
options sasautos=(sasautos 'G:\xxxx\xxxxxxxxxx\xxxxxxx\Users\MillerP\Macros');
This allows users to use any macro in my Macros folder, without including the macro in the program itself. Of course, in your case the command would use a different folder than I showed above. If that macro library has moved or been deleted, you would get the error you showed. If there is no such option in your invocation or autoexec or at the top of the program, you would get the error you showed. Maybe this option should be added to your code, if you can find where the macro library is located.
The log you show from an earlier run produces PROC REPORT code, that must be coming from somewhere. Most likely — almost definitely — it is coming from the now unavailable macro named %create_state_tab. You say it was never interpreted as a macro, but the old log that you provided makes it clear it was a macro.
It would help diagnose and debug macros if you added the option MPRINT to your autoexec or at the top of the calling program. I have it always turned on, as it doesn't hurt if you don't need it, but it is extremely helpful when creating and running macros. In your autoexec, use
options mprint;
... View more