Replacing characters in a string
I have this code:
inspect w-string1 replacing all x'C48D' by 'c'
But I got this error by the compiler
The operand has the wrong size
Is there any solution how to replace more characters with one char thru inspect command. Or should I do it myself through a run loop?
+3
Pavel Matras
source
to share
1 answer
When using the INSPECT statement, both strings must be the same length. The only way to replace multiple characters with another number of characters is to write your own loop to do this.
+2
SaggingRufus
source
to share