From: "<Ranjay> <Sinha>" <[EMAIL PROTECTED]>
Any one here can help me with a mainframe macro or rexx/clist code to
replace string1 with string2 and string3 with string4 and so on in one
execution
of the code itself.
Ranjay,
Here's an example of a very simple edit macro that does what you asked:
/* REXX */
address isredit
"MACRO"
"CHANGE 'CAT' 'DOG' ALL"
"CHANGE 'BIRD' 'FISH' ALL"
EXIT 1
If the above macro is in a member called CHNG that's in a data set that's
allocated to your SYSPROC or SYSEXEC ddname, you can edit a file you want to
apply the changes to and enter CHNG on the command line.
Hope that helps,
Dave Salt
SimpList(tm) - The easiest, most powerful way to surf a mainframe!
http://www.mackinney.com/products/SIM/simplist.htm
_________________________________________________________________
RealLiveMoms: Share your experience with Real Live Moms just like you
http://www.reallivemoms.ca/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html