On 3/9/2013 4:28 PM, Charles Mills wrote:
Like others I don't fully understand the question, but I can say that I
think a CSECT is the smallest chunk of "stuff" that the link editor can
manage. I
don't think it can ever replace part of a CSECT.
That's correct.
All, perhaps what he is saying is this?
He includes module A with entry points X and Y
He wants to include another module B with entry point Y (and perhaps others)
and use that Y, not the one in A (but still keep the X from A).
In which case you should be able to do something like (from memory -- look up
the exact syntax)
REPLACE Y(NOUSEME)
INCLUDE A
...
Charles
Hmm. Alternate entry points. Hadn't considered that, but it's
possible, I guess. Let's see how this might be done using binder
control statements ...
INCLUDE SYSLIB(B) <-- to do automatic replace, bring in the version
you want to win first; B includes Y
INCLUDE SYSLIB(A) <-- now bring in A containing X and Y; the
binder will resolve references to 'y'
to be 'Y' in 'B'
ENTRY A <-- establish the main entry point
NAME A(R) <-- establish the name the module is saved under
The syntax is good, and automatic replace works with CSECTs,
but I'm not really sure if the binder supports automatic
replacement for alternate entry points. I'm unable to
test that; perhaps someone in the list can do that.
And, of course, this is all guesswork about what the OP is trying to say!
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Ben Chin
Sent: Saturday, March 09, 2013 11:52 AM
To: [email protected]
Subject: iewl syslin
Hello,
It's been a some time (semi-retired), but I have a cobol program which has many
sub-programs.
The problem I'm having is both includes have same sub-program one old and newer.
The sub-program is not defined as an csect in either programs, when attempting
to change / replace in IEWL sub-program is NOT a CSECT OR SYMBOL WAS NOT FOUND.
Is there a way to extract/replace sub-program old for newer without sub-program
being a csect?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-355-2752
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
* Try our tool for calculating your Return On Investment
for training dollars at
http://www.trainersfriend.com/ROI/roi.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN