Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Change the String in input file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
callkris_cit

New User


Joined: 22 Apr 2006
Posts: 44

PostPosted: Thu Sep 21, 2006 12:36 pm    Post subject: Change the String in input file.
Reply with quote

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
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Sep 21, 2006 12:49 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us