View previous topic :: View next topic
|
Author |
Message |
trlowe
New User
Joined: 14 Apr 2007 Posts: 1 Location: Texas
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
I've done this for my system error handlers |
Please elaborate. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Perhaps you can modify to work as external routines. Pass parameters and set return codes. |
|
Back to top |
|
|
|