Love the subject line; maybe it should be 'loadmuddles'.

On 9/9/2011 8:36 AM, Edward Jaffe wrote:
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...


Right. But Thomas also said he is checking module
size (and bind or compile dates?) to prevent same-named
CSECTs from replacing each other if they are different.
So you would have to process each load module in a separate
job then [manually?] compare the separate modules for others
with the same name. Gets pretty complicated from this point
on, I think.


--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to