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.
In article <OF4DA53D0F.3D653927-ON852568C5.00680E29@goodyear.com>,
> I sometime use a shareware program called BK ReplaceM
> (www.orbit.org/replace) which works great on dotSAS programs and
> 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 firstname.lastname@example.org
> Sent by: "SAS(r) Discussion" <SAS-L@listserv.vt.edu>
> To: SAS-L@LISTSERV.VT.EDU
> 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
> LIBNAME final "E:/oldname/final/data" ;
> This statement: LIBNAME final "E:/newname/ final/data" ;
> I wonder if there is an automatic way (or software on PC) to do
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.