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: 73
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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


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