
Rick A. answered 04/04/19
Experienced SAS Professional
You are probably in the middle of an open %MACRO definition and SAS is still looking for the %MEND.
Try adding this to the top of the program to verify this is the problem. This "closes" various open conditions in SAS. If this generates an ERROR message on the %mend statement, then unfortunately that's not your problem.
*); */; /*'*/ /*"*/; %mend; quit; run;
If no ERROR is generated by the %mend - success. But you'll have to find the offending %MACRO with missing %MEND in the program.