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 (September 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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>
Organization: http://groups.google.com/
Subject:      Parsing for character strings
Content-Type: text/plain; charset=ISO-8859-1

Dear SAS-L:

I need a SAS program to read another SAS program for character strings.

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

Thank you!


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