Date: Tue, 12 Aug 1997 10:15:15 +0100
Reply-To: Philip Mason <Phil@WOOD-ST.DEMON.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Philip Mason <Phil@WOOD-ST.DEMON.CO.UK>
Organization: Wood Street Consulting
Subject: SASTip: Finding unmatched quotes
Content-Type: text/plain; charset="us-ascii"
Often when coding long SAS programs you may get the following message:
WARNING: The current word or quoted string has become more than 200
characters long. You may have unbalanced quotation marks.
To find the line with the missing quote you can do the following:
<1> edit your program, whether SCL or Base SAS
<2> enter the following on the command line
f "'" all
<3> If the message states that there are an odd number of single quotes,
then you know you are missing a single quote. Otherwise you are missing a
<4> Highlight half of the code and enter the appropriate FIND command on
the command line. For single quote use
f "'" all
For double quote use
f '"' all
<5> If you get an odd number returned then you know the missing quote is in
your highlighted code. Otherwise it is in the un-highlighted code.
<6> Now repeat steps 4 & 5 until you have narrowed down the section of code
to a few lines that can easily be analysed by eye to reveal where the
missing quote should be put.
* See my other tip on closing unmatched quotes.
Freelance SAS Consultant
16 Wood Street, Wallingford, Oxfordshire, OX10 0AY, England
Phone: +44 1491 834615 Fax: +44 1491 834615