View previous topic :: View next topic
|
Author |
Message |
bamohan
New User
Joined: 29 Jan 2007 Posts: 33 Location: chennai
|
|
|
|
Hi,
Can this be done by using INSPECT or some other cobol functions?
Basically, in the below example i need to replace the phrase COBOL and its subsequencent three characters with spaces. The three characters are dynamic and it can hold any numeric/alphanumeric/special characters.
Please help!
Example:
Input String : This forum is very useful to solve COBOL III, COBOL ABC, COBOL XYZ, COBOL XXX technical problems .
Output String : This forum is very useful to solve technical problems . |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Your "output" does not match your "rules". Where did the commas go?
To do what you want, you can write code using reference modificaton to locate and bypass the content you want left out of the result string. |
|
Back to top |
|
|
bamohan
New User
Joined: 29 Jan 2007 Posts: 33 Location: chennai
|
|
|
|
Oh. I missed to out to include the commas. Ok i will try out reference modification. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Good luck
d |
|
Back to top |
|
|
|