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
 
How to replace a string in Dataset by using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to replace a string in Dataset by using REXX
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    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

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

Moderator Team Head


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

PostPosted: Tue Jun 24, 2008 7:26 pm    Post subject: Reply to: How to replace a string in Dataset by using REXX
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 24, 2008 7:27 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Jun 24, 2008 7:30 pm    Post subject: Reply to: How to replace a string in Dataset by using REXX
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    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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 3 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am

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