On 9/9/2011 12:39 AM, Thomas Berg wrote:
I have a need to "split" loadmodules into separate modules.
E g: a load module, A, is consisting of three submodules, A, B and C. I want
to split it into three separate modules into a loadlibrary.
Is there a more convenient way to do this other than generate REPLACE cards for
the BINDER and - in this example - run it three times.
(Other than writing an assembler program using IEW macros.)
To split a load module 'A' consisting of CSECTs 'A', 'B' and 'C' into modules
'A', 'B' and 'C':
REPLACE A,B
INCLUDE SYSLIB(A)
ENTRY C
NAME C(R)
REPLACE A,C
INCLUDE SYSLIB(A)
ENTRY B
NAME B(R)
REPLACE B,C
INCLUDE SYSLIB(A)
ENTRY A
NAME A(R)
You can do all of the relinking/separating in a single binder step. The approach
should work even if SYSLIB and SYSLMOD point to the same library.
I know of no other way...
--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
310-338-0400 x318
[email protected]
http://www.phoenixsoftware.com/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html