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

How to write and execute LINE EDIT MACROS. Like C, D, R ..


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varun_mf

New User


Joined: 19 Jun 2006
Posts: 2

PostPosted: Tue Jun 20, 2006 11:00 am
Reply with quote

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
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Tue Jun 20, 2006 11:45 am
Reply with quote

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
View user's profile Send private message
varun_mf

New User


Joined: 19 Jun 2006
Posts: 2

PostPosted: Tue Jun 20, 2006 1:28 pm
Reply with quote

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
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top