Maybe my misunderstanding is:
I'm assuming that I am called dynamically and not linked to the caller
(because at our site, we have ONLY dynamic calls).
Kind regards
Bernd
Am 07.04.2012 09:40, schrieb Bernd Oppolzer:
How do you do this at runtime in a fast way?
I would first walk up the save area, get the entry point address of the
caller and look if there is the LE signature at position 4 (X'01'
followed
by 'CEE'), so I know that is is a PL/1 or C compiler (maybe COBOL, too,
I'm not sure about this). Then I could examine the PPA1, where the
name of
the function is stored. But, IMHO, to get the information about the
compiler
(and the language, and the version, etc.), I have to read the IDR records
of the load module, isn't it?
The old PL/1 compilers start with STM at the entry point and have the
name of the CSECT immediately before the EP.
Kind regards
Bernd
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN