callkris_cit
New User
Joined: 22 Apr 2006 Posts: 44
|
|
|
|
Hi All,
I want to change one string in the Input file (SAY CATXXX.FILE1)
For example CATXXX.FILE1 contents is as below:
SURESHRAJESH
AAAAAAAAAAA
BBBBBBBBBBB
My requirement is if the value of the String is SURESH, then it should be changed to RAMESH.
After executing REXX program the output would be as below
RAMESHRAJESH
AAAAAAAAAAA
BBBBBBBBBBB
Please provide the Sample rexx code to do this requirement.
Thanks
Suresh |
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If the file is not too big, you can use a one-statement edit-macro "CHANGE ALL SURESH RAMESH".
For bigger files, you will need to read the files using EXECIO or the ISPF service LMMGET, and then do your own processing (OVERLAY, SUBSTR, TRANSLATE etc.).
O. |
|