Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 74
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: 4649
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: 4649
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us