Re: Is it possible to use the value of the PROGRAM ID within the source code?
From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 06/11/04
- Previous message: Joe Zitzelberger: "Re: PPI numbers postponed until...sometime im the future!"
- In reply to: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Next in thread: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Reply: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 11 Jun 2004 01:52:47 GMT
Joe,
I won't reply the way you suggested, but rather by saying that *IF* one is in
an IBM mainframe environment, what this thread actually reminds me of is the
existing SHARE requriement,
"SSLNGC0313587 New LE Callable Service to get (various) Program Names
...
A new LE callable service (with capabilities well beyond CEE3GRN) should be
created to obtain various program names. This should include options to obtain:
- The currently executing program's name
- The name of the program that "activated" (Called, Invoked, whatever) the
currently executing program
- The name of the program at the "top" of the current LE "enclave"
- The name of the program at the "top" of the current LE "thread"
For each of these, sub-options may be required to provide information such as
- Any "alias" by which the program was entered
- Any "long-name" (with mixed characters) as supported by the Binder
- Any Entry-point name when other than the modules name
Finally, although not necessarily a part of this callable service, it would also
be desirable to be able to obtain the "data set name" (HFS, PDS, PDSE, LPA
member, or whatever) from which each of these entities was obtained."
-- Bill Klein wmklein <at> ix.netcom.com "Joe Zitzelberger" <joe_zitzelberger@nospam.com> wrote in message news:joe_zitzelberger-BF8C66.21441110062004@corp.supernews.com... > Just a thought. > > On z/OS you could find this information by looking at the PPA1 and PPA2 > parts of the loaded program (offset 168 in one of those). > > Whatever platform you are on must have a well defined object file format > (PEF, XCOFF, ELF, whatever). The docs for that format ought to tell you > how to find the executable name. > > This method just begs for someone to reply with a "Cobol programmers > should never have to know load module format or use pointers or anything > that smells of programming..." post. But it really is easy to do...
- Previous message: Joe Zitzelberger: "Re: PPI numbers postponed until...sometime im the future!"
- In reply to: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Next in thread: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Reply: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|