Hi- I have a variable called CreativeName with many different string values. Some of the values (not all) have parts of the strings which need to be deleted. If I use COMPRESS the characters are deleted anywhere in the string; and not the part of the string I specify. The parts that need to be deleted can be found at the beginning or the end of the string value. Here are some examples of the strings that need to be cleaned/modified Yahoo_AS_acq_fios_3x_NeonLastChanceNAT_8999_AmazonVisa_Flash_10282013_728x90.swf | AK & REVSCI Google_AS_acq_fios_3x_NeonLastChancePOTOMAC_8999_AmazonVisa_Flash_10282013_728x90.swf | AK & REVSCI acq_fios_3X_MadDashPot_7999_Visa_Flash_11172013_728x90.swf (copy) AOL_AS_acq_fios_3X_SpeedTiersNY_8999_NAC_Flash_1012013_728x90.swf This is what I have: Data want; Set have; CreativeName= compress(CreativeName,’(Copy)’); CreativeName= compress(CreativeName,’AOD_AS_’); CreativeName= compress(CreativeName,’AOL_AS_’); CreativeName= compress(CreativeName,’Google_AS_’); CreativeName= compress(CreativeName,’Google_’); CreativeName= compress(CreativeName,’Yahoo_AS_’); CreativeName= compress(CreativeName, '| AK & REVSCI'); CreativeName= compress(CreativeName, '| AK'); run; Also for values that are ‘FiOS Presents’ I have to add ‘MF’ to the end. Can I use the TRANSWORD function? Any assistance is appreciated.
... View more