Date: Thu, 16 Nov 2006 17:06:08 -0800
Reply-To: BruceBrad@INAME.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bruce Bradbury <BruceBrad@INAME.COM>
Organization: http://groups.google.com
Subject: Re: Replacing variable names in text
In-Reply-To: <7367b4e20611160858k226570baja431159f60670974@mail.gmail.com>
Content-Type: text/plain; charset="us-ascii"
> There is no need to "prime the pump" the value assigned to the INFILE
> variable associated with the LENGTH option is the value for the line
> that is being read.
Thanks. I was following an example in the manual, but I see now that
they needed to do some computation on the length which I don't.
> I'm not sure I completely understand your needs but a regular
> expression may be more useful than TRANWRD. Do RXCHANGE when the
> target is found in the line. Consider the following.
Thanks for this example. I'll come back to it one day when I need a
more flexible approach.