I am trying to delete certain substrings from vendor names. So I put in a macro and do this:
local item "BANKOFAMERICA" " INC" " INCORPORATED" " SYS " " SYSTEMS" " PVT" " PRIVATE" " LIMITED" " LTD" " LLC" " CORP" "LIMITED LIABILITY" "CORPORATION" " CORP " " COMPANY" " CO " " TECHNOLOGY" " TECH " " GLOBAL"
foreach v in `item' {
replace vendor = subinstr(vendor,"`v'","",.)
}
However, this gives me a too few quotes error. I tried compounding the "" around `v' but that didn't work. Any idea what I am doing wrong/another way to accomplish this?