Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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 call a macro within a macro in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to call a macro within a macro in REXX
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    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 12, 2008 5:53 am    Post subject: Reply to: How to call a macro within a macro in REXX
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: 2360
Location: Israel

PostPosted: Tue Aug 12, 2008 10:58 am    Post subject:
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    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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us