Date: Wed, 10 Jun 2009 16:45:16 -0700
Reply-To: Savian <savian.net@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Savian <savian.net@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: SAS code beautifier or SAS Tidy
Content-Type: text/plain; charset=ISO-8859-1
On Jun 10, 3:07 pm, joewhitehu...@GMAIL.COM (Joe Whitehurst) wrote:
> Yes indeed. I gave Alan the worst code (authors shall remain anonymous to
> protect the guilty, but the project involved Mortgage Banking services...) I
> have seen in over two decade of looking at SAS code, and his utility cleaned
> it right up.
> On Wed, Jun 10, 2009 at 4:30 PM, Richard Read Allen
> <peaks...@wispertel.net>wrote:
>
>
>
> > Trywww.savian.net. I think Alan Churchill may have developed some
> > utilities
> > that may be able to help you.
>
> > -Richard
>
> > -----Original Message-----
> > From: SAS(r) Discussion [mailto:SA...@LISTSERV.UGA.EDU] On Behalf Of Mary
> > Sent: Wednesday, June 10, 2009 2:13 PM
> > To: SA...@LISTSERV.UGA.EDU
> > Subject: Re: SAS code beautifier or SAS Tidy
>
> > David,
>
> > I also found this on the PL/1 board FAQ:
> >http://www.faqs.org/faqs/computer-lang/pli-faq/;might be worth a try.
>
> > -Mary
>
> > Peter Osterman's PL/I source code reformatter.
> > .
> > The PL/I source code reformatter for Windows (formpli3.exe,
> > 414k self extracting file) created by Peter Ostermann of Germany
> > is now freeware.
> > .
> > The PL/I source code reformatter at:
> > .
> > http://home.nwn.de/peter.ostermann/formpli3.exe
> > .
> > can help make jumbled code more readable by putting statements
> > on separate lines and pointing out the nesting levels by indention.
> > .
> > The reformatter is a standalone product, is easy to use, and
> > does the job in a few seconds. It requires just one megabyte
> > of disk space, so give it a try.
> > .
> > Send suggestions or comments to: Peter-Osterm...@t-online.de
> > .
> > Visit: http://home.nwn.de/peter.ostermann/hobby.html
> > .
> > for more information and download on Peter's personal web page.
> > Peter Osterman's PL/I source code reformatter.
> > .
> > The PL/I source code reformatter for Windows (formpli3.exe,
> > 414k self extracting file) created by Peter Ostermann of Germany
> > is now freeware.
> > .
> > The PL/I source code reformatter at:
> > .
> > http://home.nwn.de/peter.ostermann/formpli3.exe
> > .
> > can help make jumbled code more readable by putting statements
> > on separate lines and pointing out the nesting levels by indention.
> > .
> > The reformatter is a standalone product, is easy to use, and
> > does the job in a few seconds. It requires just one megabyte
> > of disk space, so give it a try.
> > .
> > Send suggestions or comments to: Peter-Osterm...@t-online.de
> > .
> > Visit: http://home.nwn.de/peter.ostermann/hobby.html
> > .
> > for more information and download on Peter's personal web page.
>
> > ----- Original Message -----
> > From: "Mary" <mlhow...@avalon.net>
> > To: "Wall, David K. (CDC/NIOSH/DSHEFS)" <d...@CDC.GOV>
> > Sent: Wednesday, June 10, 2009 3:06 PM
> > Subject: Re: SAS code beautifier or SAS Tidy
>
> > >I haven't heard of a SAS beautifier, but there are several for PL/1 if
> > > you search google under PL/1 beautifier, such as this one (neater2):
>
> > >http://portal.acm.org/citation.cfm?doid=362790.362796
>
> > > SAS was originally written in PL/1, so these might make a reasonable
> > > attempt.
>
> > > -Mary
>
> > > ----- Original Message -----
> > > From: "Wall, David K. (CDC/NIOSH/DSHEFS)" <d...@CDC.GOV>
> > > To: <SA...@LISTSERV.UGA.EDU>
> > > Sent: Wednesday, June 10, 2009 2:37 PM
> > > Subject: SAS code beautifier or SAS Tidy
>
> > >> Does anyone know of a SAS code beautifier, something that will parse SAS
> > >> code and indent it properly? Maybe even add space around operators? That
> > >> would go a long way toward making it easier to rewrite inherited code.
> > >> Perl has Perltidy, and there's HTML Tidy for HTML, but I don't know of
> > >> anything for SAS. I called SAS Support, and they didn't have anything
> > >> either. The person I talked to said that several of the consultants she
> > >> asked said they'd love to have something like that, too. If I knew
> > >> anything about writing compilers or parsers (or whatever the proper term
> > >> is) I'd do it myself, but I'm woefully ignorant of many computer science
> > >> topics.
>
> > >> David Wall- Hide quoted text -
>
> - Show quoted text -
Joe,
Thanks to you and everyone else who threw a lot of wrenches at it.
SAS was vicious for cleaning. It really is more freeform than people
may realize and there is a lot of legacy stuff. Nonetheless, I took it
well beyond what Joe originally saw. I could never quite get past some
oddities though which is why I pushed it to the back burner. Someone
recently asked about it so I pulled it back out and cleaned it up.
Alan
http://www.savian.net
|