User:Audi/BlogEntry: 2007 July 25 12:26:32 EDT

From sasCommunity

Jump to: navigation, search

[edit] Smarter code indenter

Notebook's code indenter, the first and only SAS code indenter available to SAS programmers, has been improved.

Writing a code indenter for an odd programming language like SAS is tricky. Take for instance the following line of code:

    infile "%sysfunc(compress(&flatfile,%str(%'%")))" pad eof=eof;

Where is the end quote for the quote that starts after the "infile" keyword? Of course, it's easy to tell from a SAS programmer's point of view -- it's the quote before the "pad" keyword. But for a computer, it's hard to tell, especially if you're dealing with hundreds of lines of code.

The latest version of Notebook (Version 1.0.0.15) can pinpoint the correct end quote correctly.

Try it -- the one and only SAS code indenter of its kind!

Personal tools