12-16-2015 09:48 AM
I am running my code in sas9.2.
When I submit the code, I see everything in black in the log window. (Ususally it has colours).
ANd I dont see anything in the output window. I know only the code inside a macro comes in black.
ANy idea why my code is not giving any output/ Log messages?
12-16-2015 10:05 AM
It sounds to me like you have had unbalanced Quote marks at some point in a program, hence anything you are submitting now is showing as part of that text, i.e.:
As there is no finishing quote, the ;run; is part of the text so is anything following. Generally I would save and restart SAS, thats simplest. Make sure anything you run has balanced quotes, if you start with single finish with single, double finish with double, they must balace each other out.
12-16-2015 02:22 PM
Sometimes it helps to submit a certain sequence of closing quotes and statements. Here is one example with explanation cited from a former colleague's website, Roland's SAS® Macros:
*';*";*/;*);run;%put >>> NOW WORKING;
"Copy and paste the above line of code into your sas session and run it three times if your session gets stuck in that you submit things and see it echoed in the log but it does not do anything. If you see the ">>> NOW WORKING" message starting at column one in the log then your session just came back to life again (hopefully)."
Other suggestions (some including a MEND statement, which I think is promising if you have worked with macros in your hanging session) were discussed on http://stackoverflow.com/questions/107414/whats-your-best-trick-to-break-out-of-an-unbalanced-quote-....