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 all the words in program using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ksathishkumar4u
Currently Banned

New User


Joined: 29 May 2006
Posts: 0

PostPosted: Fri Jun 09, 2006 5:50 pm    Post subject: How to replace all the words in program using REXX
Reply with quote

How to replace all the words in program using REXX ?

for ex:
if we give c all 'hai' 'hello' on command line on mainframe screen all the words of hai will be changed to hello
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: Fri Jun 09, 2006 5:58 pm    Post subject: Re: How to replace all the words in program using REXX
Reply with quote

Replace all the words with what? What's wrong with using a CHANGE command from the ISPF editor to do what you want, as you showed in your example?
Back to top
View user's profile Send private message
ksathishkumar4u
Currently Banned

New User


Joined: 29 May 2006
Posts: 0

PostPosted: Fri Jun 09, 2006 6:02 pm    Post subject: Re: How to replace all the words in program using REXX
Reply with quote

ksathishkumar4u wrote:
How to replace all the words with another word in program,do we have any REXX command for it?

for ex:
if we give c all 'hai' 'hello' on command line on mainframe screen all the words of hai will be changed to hello
Back to top
View user's profile Send private message
foliater

New User


Joined: 06 Apr 2006
Posts: 31

PostPosted: Fri Jun 09, 2006 6:03 pm    Post subject: Re: How to replace all the words in program using REXX
Reply with quote

u can run a macro to do that....

/*rexx*/
address isredit
"macro"
"c all 'hai' 'hello'"
"end"

remember to concatenate the macro.....

after concatenating the member name is ur macro name....
Back to top
View user's profile Send private message
ksathishkumar4u
Currently Banned

New User


Joined: 29 May 2006
Posts: 0

PostPosted: Fri Jun 09, 2006 6:45 pm    Post subject: Re: How to replace all the words in program using REXX
Reply with quote

foliater wrote:
u can run a macro to do that....

/*rexx*/
address isredit
"macro"
"c all 'hai' 'hello'"
"end"

remember to concatenate the macro.....

after concatenating the member name is ur macro name....


how to the same without using macro
Back to top
View user's profile Send private message
foliater

New User


Joined: 06 Apr 2006
Posts: 31

PostPosted: Tue Jun 13, 2006 8:19 pm    Post subject: Re: How to replace all the words in program using REXX
Reply with quote

hi,
there are lot many ways to do that..
can i know your process needs...
what is wrong in doing that with a macro.
Back to top
View user's profile Send private message
ksathishkumar4u
Currently Banned

New User


Joined: 29 May 2006
Posts: 0

PostPosted: Thu Jun 15, 2006 9:35 am    Post subject: Re: How to replace all the words in program using REXX
Reply with quote

foliater wrote:
hi,
there are lot many ways to do that..
can i know your process needs...
what is wrong in doing that with a macro.





we have to install macro thats the main reason i am avoiding it..
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. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


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