Date: Tue, 14 Apr 2009 10:17:56 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject: Re: Finding Unbalanced DO/END Statements in a _LARGE_ SAS Program
Content-Type: text/plain; charset="ISO-8859-1"
Thanks for adding this since it is one of the many useful features of ISPF
that seems to escape the developers on other platforms.
I even have a pf key set up to do an "X All".
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977
Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
Re: Finding Unbalanced DO/END
Statements in a _LARGE_ SAS Program
Please respond to
Something like the following on the ISPF command line...
X all;f 'Do ' all;f 'End ' all
followed by browsing the resulting screen with the good old Mark-1 Eyeball
and using the xx....xx line commands to exclude those lines that have been
reviewed as complete!
Of course, you could also do this form the held que in SDSF for the
generated macro code!
416 982 6763
~From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On
~Behalf Of Nat Wooding
~Sent: Tuesday, April 14, 2009 9:47 AM
~Subject: Re: Finding Unbalanced DO/END Statements in a _LARGE_
~You may be thinking of the days when you were priviliged to
~work on THE MAINFRAME since in ISPF there is an option that
~can be invoked that will color text. The down side is that I
~am not sure how many colors are available and also, please
~don't ask me how to invoke the option since I think that it
~has been more than 10 years since I had to actually turn it on.
~I kind of like the suggestion that was posted about splitting
~up the program but I can also see that this might not help if
~you had a lot of nested do statements since they could span
~large chunks of the program and also, you have to do some
~pretty careful analysis in order to figure out where the
~missing do should go.
~Could the macro program be "told" to add a comment to each do
~and end statement that would uniquely label the do and end so
~that Proc Eyeball would recognize the pairing?
~Environmental Specialist III
~Dominion, Environmental Biology
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.
If the above disclaimer is not properly readable, it can be found at
AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés, est confidentiel. Si vous
n'êtes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation d'une partie de ce
courriel est strictement interdit de même que toute intervention ou
abstraction à cet égard. Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement l'expéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entière de tout système électronique.
Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter à www.td.com/francais/legale
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.