| Date: | Wed, 19 Apr 2000 13:29:19 -0700 |
| Reply-To: | kmself@IX.NETCOM.COM |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | kmself@IX.NETCOM.COM |
| Subject: | Re: Newbie question:Change a word in several sas programs |
|
| In-Reply-To: | <no.id>; from hugues@PANTERA.RI.MGH.MCGILL.CA on Tue, Apr 18,
2000 at 05:53:05PM +0000 |
| Content-Type: | multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; |
|---|
On Tue, Apr 18, 2000 at 05:53:05PM +0000, Hugues Richard wrote:
> 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.
The OS-based approach is to use sed, awk, or perl. See
http://www.research.att.com/sw/tools/uwin for a Unix-on-NT compatibility
kit. NT is broken by its omission of such tools.
The SAS way is to use a macrovariable or macro for your filesystem
references. In this case, I'd suggest a global %INCLUDE file for your
set of programs.
--
Karsten M. Self <kmself@ix.netcom.com> http:/www.netcom.com/~kmself
What part of "Gestalt" don't you understand?
http://gestalt-system.sourceforge.net/
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
[application/pgp-signature]
|