Date: Fri, 12 Sep 2003 03:26:40 -0700
Reply-To: steve <jjfhitsthegas@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: steve <jjfhitsthegas@NETSCAPE.NET>
Subject: Parsing for character strings
Content-Type: text/plain; charset=ISO-8859-1
I need a SAS program to read another SAS program for character
How would I delimit a SAS program (beginning and end) and inside of
the program determine if fields (x,y,z,..) are being used (exist).
Beginning the parse would normally id the "data" statement and end
with either a proc, data, or run statement. This is necessary as I am
using KSH to repeatedly read members of a directory.
I know how to do a do-loop, but, managing the lines inside the loop I
am having trouble visualizing.
I'm ok on reporting, but, the parsing requires a little more thought.
Can you give me some direction (has a similar question been asked that
I cannot find)?