LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2006, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 31 Jan 2006 12:25:10 -0500
Reply-To:   Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Subject:   Re: naming do loops
Comments:   To: regi.mathew@SYMPHONYSV.COM

On Mon, 30 Jan 2006 20:07:15 -0800, regi.mathew@SYMPHONYSV.COM wrote:

>Hi ALL: > >Is there a way to name do loops in SAS? Problem is that my code contain >numerous nested do loops and it is difficult figure out which 'end' >belongs to which 'do'. > >Thanks in advance for your help. > >Regi

Regi

to help you "figure out", here are two ideas might help.

In enhanced editor, when reading your code, place the cursor on a DO statement and then press the key combination alt+[ or alt with the key for any style bracket []{}() It should bounce the position of the cursor between the DO and corresponding END. (subject to the accident that the developers of enhanced editor didn't appreciate end= options, and that SELECT is terminated by an END - without a DO )

The other idea, is discipline : document the END statement with descriptive notes about the DO

That DO-END "bounce" is really neat, but not much help when reviewing code on paper ;-)

There is a corresponding "bounce" for parentheses cntl+[ or with the key for any style bracket []{}()

Peter Crawford Software Consultancy Limited UK


Back to: Top of message | Previous page | Main SAS-L page