On Fri, 9 Sep 2011 07:36:52 -0700, Edward Jaffe <edja...@phoenixsoftware.com> 
wrote:

>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...
>

I think it's unsafe to have SYSLIB and SYSLMOD pointing to the same library. 
Suppose you have load module A with CSECTs A, B, and C but you also have a load 
module C with CSECTs D, E, and F. 

If SYSLIB and SYSLMOD are the same library, your "de-linking" of A will wipe 
out load module C.

-- 
Walt

----------------------------------------------------------------------
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