Find a position in variable and update.
Posted: Fri Jan 17, 2014 5:06 pm
Hi,
In a COBOL
Variable1 PIC X(36) value '0123456789abcdefghijklmnopqrstuvwxyz'.
I want to firstly search the character, for example 'c', later want to update the character 'c' to '$'. In the output i need to display, the character position, chrrent value and the replaced value - how should I proceed for this.
Thank you
In a COBOL
Variable1 PIC X(36) value '0123456789abcdefghijklmnopqrstuvwxyz'.
I want to firstly search the character, for example 'c', later want to update the character 'c' to '$'. In the output i need to display, the character position, chrrent value and the replaced value - how should I proceed for this.
Thank you