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: 4649
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
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