LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 1999, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: "User Group SAS (E-mail)" <sas-l@uga.cc.uga.edu>
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


Back to: Top of message | Previous page | Main SAS-L page