|
I don't believe there was ever such a function.
The same result can be easily achieved.
17 data _null_;
18 str="aaratbbratcc";
19 /* str2=remove(str,"rat");*/
20 str2=compress(tranwrd(str,"rat",'ff'x),'ff'x);
21 putlog 'NOTE: ' str2=;
22 run;
NOTE: str2=aabbcc
On 7/23/07, RolandRB <rolandberry@hotmail.com> wrote:
> On 23 Jul, 06:03, datan...@GMAIL.COM ("data _null_;") wrote:
> > On 7/22/07, RolandRB <rolandbe...@hotmail.com> wrote:
> >
> > > "remove()" doesn't work for me. Did they take that function away?
> >
> > I don't recall a remove function what did it remove.
>
> It removes the second string you specified from the first and returned
> the results.
>
> str="aaratbbratcc";
> str2=remove(str,"rat");
>
> would give str2="aabbcc";
>
|