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 Profile Log in to check your private messages Log in
 
How to write and execute LINE EDIT MACROS. Like C, D, R ..

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to write and execute LINE EDIT MACROS. Like C, D, R ..
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    Post subject:
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    Post subject: LINE EDIT MACROS.
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 : http://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    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 Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am

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