LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 18 Apr 2000 19:43:49 GMT
Reply-To:   charles_s_patridge@MY-DEJA.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   charles_s_patridge@MY-DEJA.COM
Organization:   Deja.com - Before you buy.
Subject:   Re: Newbie question:Change a word in several sas programs

Hugh,

I believe there is a SAS macro on my web site (www.sasconsig.com) under Tips and Techniques (Tip00077) which might serve your purpose. If not, I have a SAS macro I use to do massive changes to external files (they could be .sas extensions) to find and replace string searches.

However, my macro was written for OpenVMS system and would need to be modified to fit a Windows NT system ( basically, need to change how to read a flat file in NT after performing a DIR *.sas > listsas.lis and how to pick which records are SAS program entries in this lis.

Let me know if you are interested and I can send it to you.

Regards, Charles Patridge Email: Charles_S_Patridge@prodigy.net

In article <OF4DA53D0F.3D653927-ON852568C5.00680E29@goodyear.com>, clmakinson@GOODYEAR.COM wrote: > I sometime use a shareware program called BK ReplaceM > (www.orbit.org/replace) which works great on dotSAS programs and exported > Source entries. There are several mass change/multiple file shareware > utilities. However, if your programs are SCL then you have a problem. > > Hugues Richard <hugues@PANTERA.RI.MGH.MCGILL.CA>@listserv.vt.edu> on > 04/18/2000 01:53:05 PM > > Please respond to hugues@pantera.ri.mgh.mcgill.ca > > Sent by: "SAS(r) Discussion" <SAS-L@listserv.vt.edu> > > To: SAS-L@LISTSERV.VT.EDU > cc: > Subject: Newbie question:Change a word in several sas programs > > Hello , > > I'm using sas V8 on winnt . All my sas files are in the folder > oldname/ . I want to change the name of the folder to newname/. But > I've got a lot of sas programs with the LIBNAME statement and I don't > want to open each sas file and do a Edit-Replace oldname with newname. > > So , for all sas programs in the oldname folder , I want to change this > statement > LIBNAME final "E:/oldname/final/data" ; > > TO > > This statement: LIBNAME final "E:/newname/ final/data" ; > > I wonder if there is an automatic way (or software on PC) to do that... > > Thanks, > Hugues >

-- Charles Patridge - PDPC, Ltd. 172 Monce Road - Burlington, CT 06013 USA Phone: 860-673-9278 or 860-675-9026 Email: Charles_S_Patridge@prodigy.net - Web: www.sasconsig.com

Sent via Deja.com http://www.deja.com/ Before you buy.


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