Well, here is the answer to at least part of the puzzle, if not all... "You can find the name of the calling programs from a COBOL V5 or V6 program at run time by using the LE service CEETBCK. For more information, see the z/OS® Language Environment® Vendor Interfaces."
https://www-01.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R3SA380688/$file/ceev100_v2r3.pdf Joe On Tue, Sep 22, 2020 at 5:42 PM Paul Gilmartin < [email protected]> wrote: > On Tue, 22 Sep 2020 21:51:34 +0000, Farley, Peter x23353 wrote: > > >Current Enterprise COBOL compilers (and back as far as I know, even COBOL > F-level from MVT) always mark the last parameter address in the address > list with the bit 0 turned on, though I have not researched what current > ones do if the last parameter is "BY VALUE". > > > >Again for current Enterprise COBOL versions, the LE Vendor Interfaces > manual available in KC has the PPA1 format and in general how to locate it. > > > The answer depends on agreement between the designers of the calling > and called programs. Lacking such agreement there's no general > solution. > > C programs called by a POSIX shell can rely on argc, but only because > that's > specified in the Standard. > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
