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
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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