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: 4648
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: 4648
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 Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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