|
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
|