|Date: ||Wed, 19 Apr 2000 13:29:19 -0700|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|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;
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 <firstname.lastname@example.org> http:/www.netcom.com/~kmself
What part of "Gestalt" don't you understand?
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0