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

How to call a macro within a macro in REXX


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

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Tue Aug 12, 2008 3:17 am
Reply with quote

Hi All,

I have a macro in a PDS as say mem1 and then I have another macro in mem2. I want to call mem1 in mem2. Is there a way to do this?

Could you please help me out with this?

Thanks,
Hariharan
Back to top
View user's profile Send private message
hariharan_82

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Tue Aug 12, 2008 4:19 am
Reply with quote

I got this.

I did a ADDRESS TSO "%<mem1>" and it worked.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Aug 12, 2008 5:53 am
Reply with quote

You can also use the rexx CALL instruction:
Code:
call test23(myparm1) 


or as an external function:
Code:
a = test23(myparm1)


I am not sure, but there might be some minor performance differences from using Address TSO. Minor performance differences add up if you are doing something repetitively.

Use the member name.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Aug 12, 2008 10:58 am
Reply with quote

I believe you were talking about a macro.

As far as I know, the only way the invoke an ISPF Edit Macro within ISPF, is issuing the EDIT/VIEW service with the MACRO keyword.

The method to invoke an ISPF Edit Macro within an EDIT/VIEW session is the ISREDIT host command.

O.
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 Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top