05-06-2016 05:12 AM
It seems that at some point an unbalanced quotation mark was submitted. As a consequence, all code submitted afterwards, up to the next matching quote, is regarded as part of a long string which "has become more than 262 characters long," as one of the log messages says. The red 49s and non-functioning correct SAS code are only further consequences of this.
Normally, closing the SAS session and starting a new one should solve the issue. To try and solve it in the current session, you could use the following line of code:
*'; *"; *); */; %mend; run;
Submit this repeatedly, until the message
ERROR: No matching %MACRO statement for this %MEND statement.
appears in the log. Then your session should be back to normal.