Hope somebody can help me. I tried to use %scanrpl like this
The result still show as 'Hello World' instead of ' World'. If I just do result = %scanrpl('Hello':'':result); the result show as ' World'. Why, is there something I did wrong? if not, is there any other method to use? My progame aim is to delete strings in the message but those string can be variable.
Code:
dcl - s var char(10); dcl - s result char(10); val = 'Hello'; result = 'Hello World' result = %scanrpl(val:'':result);
Comment