What's your best trick to break out of an unbalanced quote condition in BASE SAS?

Martin Bøgelund picture Martin Bøgelund · Sep 20, 2008 · Viewed 9.3k times · Source

As a base SAS programmer, you know the drill:

You submit your SAS code, which contains an unbalanced quote, so now you've got not only and unclosed quote, but also unclosed comments, macro function definitions, and a missing run; or quit; statement.

What's your best trick for not having those unbalanced quotes bother you?

Answer

Martin Bøgelund picture Martin Bøgelund · Sep 20, 2008

As for myself, I usually Google for "SAS unbalanced quote", and end up with submitting something like this:

*); */; /*’*/ /*”*/; %mend;

... to break out of unclosed comments, quotes and macro functions.