Simply use the INSPECT statement:
INSPECT ID-1 CONVERTING “ABCD” TO “XYZX” AFTER QUOTE BEFORE “#”.
ID-1 Before: AC”AEBDFBCD#AB”D
ID-1 After: AC”XEYXFYZX#AB”D
If I remember correctly, I’ve replaced one character with multiple characters.
Register Hereor login if you are already a member