IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to replace all the words in program using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jun 09, 2006 5:58 pm
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top