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

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?

Answers


Here is the one I use.

 ;*';*";*/;quit;run;
 ODS _ALL_ CLOSE;
 QUIT; RUN;

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.


Need Your Help

Javascript: JSON 'for loop'

javascript jquery json for-loop

The following Javascript displays in Safari but not Mobile Safari. Can anyone see any bugs?

Int2Cat - DriverVer set to incorrect date

visual-studio-2012 wdk

I'm trying to develop a driver using Visual Studio 2012, which automatically integrates with WDK.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.