My ACRO( Bank Name) is in position 40 and every time bank name should start with PRIN.( Firt 4 charters).

It would be great if any one can reply with code. We tired all possible ways but no luck, for updating the file.( need to check PRIN in first 4 positions and also acro name, if acro matches i want to replace the string).

Your post has one major technical error (there is no such thing as a CLIST panel) and one major rules violation (you did not use Code tags to format your data). Moreover, you have committed the enormity of asking for code without offering payment. PM me and I will explain how you can exchange Rs, 6,000 for the solution.

As per my requirement, Under bank name there may 30 to 40 fields, Some times i may get requirement like change the cutoff name or chnage the city name, change the country name...etc. That's why i went to replace/overlay the string.

It would be great if any one share the code based on condition ( particular position Field matches), need to overlay the next matching string if not matches, we can just display the like string not found and come out of the loop.( no need to update the file).

I am sorry, Unfortunately i am not able to share my code, because of security issues.

Posted: Wed Jul 27, 2016 9:41 pm Post subject: Reply to: Need a help how to replace a string in REXX based on cnditio

Quote:

because of security issues.

Nobody is expecting you to divulge company secrets or sensitive personal information. However, I do not believe that three or four lines of rexx code will contain either. (if they do, you should replace the sensitive information with bogus information to alleviate your security concerns.)

As per my requirement, Under bank name there may 30 to 40 fields, Some times i may get requirement like change the cutoff name or chnage the city name, change the country name...etc. That's why i went to replace/overlay the string.

What is that you think is difficult in achieving to what you said? You need SUBSTR - To check the bank name and OVERLAY - To replace the values from the panelOR The easiest way is to search this forum and you would find 100s of examples discussed but you have to spend time and nobody will code for you here.

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".