IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to replace a string in Dataset by using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
reddy307
Currently Banned

New User


Joined: 09 Jun 2006
Posts: 18

PostPosted: Tue Jun 24, 2008 6:55 pm
Reply with quote

Hi ,

I have a requirement that i need to replace in a dataset all LIVE to TEST.

How can i do it in REXX...

I am very new to REXX may be my question is little silly...

Thanks for your patience..

Many thanks,
Avinash G
Back to top
View user's profile Send private message
rexx77

New User


Joined: 14 Apr 2008
Posts: 78
Location: Mysore

PostPosted: Tue Jun 24, 2008 7:10 pm
Reply with quote

if i have got ur question correctly, i dont think u need to use rexx to change a string to some other in dataset.

i believe u can use CHANGE ALL command with OLD and NEW string in dataset.

Hope this helps

Regards
Back to top
View user's profile Send private message
reddy307
Currently Banned

New User


Joined: 09 Jun 2006
Posts: 18

PostPosted: Tue Jun 24, 2008 7:13 pm
Reply with quote

My requirement is that I need to do this work repetedly more over this is not simply changing one string... I need to change many strings in the dataset. I hope you understood the problem


Regards,
Avinash G
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Tue Jun 24, 2008 7:17 pm
Reply with quote

You can use a ISREDIT macro.........
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jun 24, 2008 7:26 pm
Reply with quote

... or a regular EDIT routine ...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 24, 2008 7:27 pm
Reply with quote

Of which there is at least one example on the forum, because I posted it icon_biggrin.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jun 24, 2008 7:30 pm
Reply with quote

Although, to replace a string with another string of equal length, I'd use a SORT - much more efficient.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top