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

Does REXX have the equivalent of a 'COPY' or 'INCLUDE' stmt?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 07, 2011 9:41 pm
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

Global Moderator


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

PostPosted: Wed Jun 08, 2011 2:06 am
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

Global Moderator


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

PostPosted: Wed Jun 08, 2011 2:07 am
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 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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top