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
 
Does REXX have the equivalent of a 'COPY' or 'INCLUDE' stmt?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
trlowe

New User


Joined: 14 Apr 2007
Posts: 1
Location: Texas

PostPosted: Tue Jun 07, 2011 9:37 pm    Post subject: Does REXX have the equivalent of a 'COPY' or 'INCLUDE' stmt?
Reply with quote

I'm trying to share some reusable code in multiple REXX modules and would like to be able to 'INCLUDE' a member in a REXX module. I've done this for my system error handlers but can't get it to work for other code.

Example:

REXX pgm
code
. . .

CALL modulea

. . .

include other REXX member containing modulea

. . .

EXIT
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Tue Jun 07, 2011 9:41 pm    Post subject: Reply to: Does REXX have the equivalent of a 'COPY' or 'INCL
Reply with quote

not the interpreted one
the INCLUDE facility is provided by the REXX compiler

or by the ISRLEMX facility of ispf
Quote:
ISRLEMX
Copies the primary member, expands any included members, and unpacks any packed members.


anyway even using ISRLEMX is a two stage approach
and at least two libraries are needed

the source library with the INCLUDER and the INCLUDED members
a target library wit the <resolved> rexx ready to run
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Wed Jun 08, 2011 2:06 am    Post subject: Reply to: Does REXX have the equivalent of a 'COPY' or 'INCL
Reply with quote

Quote:
I've done this for my system error handlers

Please elaborate.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Wed Jun 08, 2011 2:07 am    Post subject: Reply to: Does REXX have the equivalent of a 'COPY' or 'INCL
Reply with quote

Perhaps you can modify to work as external routines. Pass parameters and set return codes.
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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