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 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: 4650
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
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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