Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

CLIST & REXX :: RE: Need a help how to replace a string in REXX based on cnditio

$
0
0
Author: gurunath82
Posted: Fri Jul 29, 2016 10:21 am (GMT 5.5)

Thanks All.

I got this. Thanks Rohit, i also got same thought in my mind and i implemented this on Wednesday. In Rexx Manuals, i found sub string concept. I read current record and used substring function to check first 4 bytes and 40 to 4 bytes, if my condition is matching i set a flag to Y. Again continued reading each record when ever my input string is matches for the exact position and FALG=Y. If both are satisfied i replaced the string and set flag "N".

Thanks all once again your suggestions. .


Viewing all articles
Browse latest Browse all 9405

Trending Articles