IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to call a macro within a macro in REXX

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> CLIST & REXX
View previous topic :: View next topic  
Author Message
hariharan_82



Joined: 18 Apr 2007
Posts: 11
Location: Chennai

Posted: Tue Aug 12, 2008 3:17 am    Post subject: How to call a macro within a macro in REXX  

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  
hariharan_82



Joined: 18 Apr 2007
Posts: 11
Location: Chennai

Posted: Tue Aug 12, 2008 4:19 am    Post subject:  

I got this.

I did a ADDRESS TSO "%<mem1>" and it worked.
Back to top  
Pedro



Joined: 01 Sep 2006
Posts: 536
Location: work

Posted: Tue Aug 12, 2008 5:53 am    Post subject: Reply to: How to call a macro within a macro in REXX  

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  
ofer71



Joined: 27 Dec 2005
Posts: 1962
Location: Israel

Posted: Tue Aug 12, 2008 10:58 am    Post subject:  

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  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> CLIST & REXX
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM