View previous topic :: View next topic
|
Author |
Message |
varun_mf
New User
Joined: 19 Jun 2006 Posts: 2
|
|
|
|
Hi.
By using REXX/CLIST...
I would like to know how to write and execute LINE EDIT MACROS.
Similar to D-Delete, R-Repeat, ...etc.
and I also I would like to know what is ZUSERMAC? How it is useful to run LINE COMMANDS?
Thanks in advance...
Varun. |
|
Back to top |
|
|
antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
Hi Varun,
Suppose you need to find all the occurences of the word 'call' and change all occurences of the word 'of' to 'in', the following piece of code will work..
Code: |
/* REXX */
text = call
text1 = of
text2 = in
address isredit 'macro'
address ispexec "isredit f " text " all"
address ispexec "isredit c " text1 text2 " all" |
Explanation:
You need to specify that this a macro by adding the line as in the above code.
Code: |
address isredit 'macro' |
Then you can write your line edit commands
Code: |
address ispexec "isredit <line edit command>" |
Thanks,
Antu |
|
Back to top |
|
|
varun_mf
New User
Joined: 19 Jun 2006 Posts: 2
|
|
|
|
I just got fallowing some information regarding line edit macros. But having little bit confusion in initializing the main macro and using the line edit macors.
-> One edit macro may initiate anothoer macro (that macro might be line edit macro).
-> Line edit macros should not enter at command line. To intiate this we need to enter the name of the main macro at command line only once and can use line edit macros any number of times until unless we can/cancel the session. To automate this ISREDIT ! is used (or) We may assign the name of the Main edit macro to the profile pool with ZUSERMAC.
and i found some link for this as : www.sillysot.com/mvs/lmachelp.htm
I am unable to process this. As I am not understanding it clearly ....
- -> please explain me step by step. As I am new to REXX
Could anybody please help in this regard.
Thanks in advance. |
|
Back to top |
|
|
|