Date: Wed, 22 Dec 1999 10:30:47 -0500
Reply-To: "LINCK, JIM" <LINCK@SIMON.ROCHESTER.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "LINCK, JIM" <LINCK@SIMON.ROCHESTER.EDU>
Subject: Replacing/Deleting an occurrence of a string in a field
Content-Type: text/plain; charset="ISO-8859-1"
I have an approximately 32 character field in a couple SAS data sets that I
am trying to match up. One of the problems caused in the matching is that "
INC " and " CORP " (with spaces so they are not part of the name) are
sometimes mixed and matched. While I can easily compress out instances of
single characters, I do not know how to compress out and/or replace
instances of a whole string with another whole string. That is, I'd like to
do a couple things:
1. Get rid of all instances of " INC " and " CORP " in the variable
2. Replace all instances " INC " with " CORP "
Any suggestions?
Thanks.
Jim
|