On Thu, 29 Nov 2018 at 12:02, Farley, Peter x23353 <
[email protected]> wrote:

> The PDS/E directory entry for a program contains, among other information,
> the EPA offset within the program.
>
> The EPA offset is also contained in the SMDE/PMAR information returned by
> DESERV.
>
> After much RTFM however, I cannot seem to find anywhere in the Binder API
> data areas an indication of which section/label is the entry point for the
> program.
>
> In particular, I would have expected that an LD entry in the ESD table
> would contain such an indicator, but I do not see one anywhere.
>
> Am I just not seeing the information in the API structures or is it just
> not there?
>

A good question. I think it comes down to whether an ESD entry "knows" that
it is the EP. But maybe there is no pointer in that direction, and only the
LM/PO knows the EPA. (As you point out, it is in the SMDE/PMAR, but there
isn't any obvious API that returns fields from those data areas.) I think
you might have to issue the LOADW function against your workmod, which
should return the EPA. Presumably you would also specify IDENTIFY=NO and
that in turn requires an XTLST=<somewhere> that you would use to get the
load point which you would subtract the EPA from to get the EPA offset.
Whew! And if you get multiple extents in the list, I have no idea what to
do.

It's been a long time since I saw any comments from IBM Binder development
on this list...

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to