Date: Mon, 20 Aug 2007 08:01:14 -0700
Reply-To: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject: Re: name of variabel
In-Reply-To: A<1187621110.46c9a8f62b57e@gold5.portugalmail.pt>
Content-Type: text/plain; charset="us-ascii"
Hi Filipa,
Here is one method of changing characters.
data _null_;
theString = 'the old+file*name.txt';
result = translate(theString,'___',' +*');
put _all_;
run;
Not sure at point in your process your need
actually is, so we don't know if you need to
automate renaming or not, etc.
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investments
Russell Investments
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
SUBSCRIBE SAS-L Filipa
Sent: Monday, August 20, 2007 7:45 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: name of variabel
Hi all,
I have many variables and the name of these variables contains
characters that aren't acceptables in SAS. Is it possible to substitute
automatically these characters for acceptable characteres (for example
underscore)? How can I do it?
Thank you
Filipa
|