I have used the import wizard, so now I have these tables: Reglas- Here, we have CVE_CONCEPTO and FORMULA, the last mentioned are the ones that I want to replace with the values in the other table. INFO-Here, we have CVE_CONCEPTO and SALDO, the last mentioned are the ones that would replace the FORMULA depending on the CVE_CONCEPTO. But when I tried with this code, it only replaced the first value, not the ones after the + character. DATA want; SET Reglas; DO i=1 to _nobs; SET INFO nobs=_nobs point=i; IF findw(FORMULA,Strip(CVE_CONCEPTO)) THEN FORMULA=tranwrd(FORMULA,Strip(CVE_CONCEPTO),Strip(SALDO)); END; DROP CVE_CONCEPTO SALDO; RUN; The result I´m looking for is the following: CVE_CONCEPTO| FORMULA 3 | 10+20 6 | 20+50 I´ll be very grateful if you could help me with this. Thanks
... View more