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

  • Next message: BugALugs478_at_InfamousISP.gov: "Re: Memory-mapped video"
    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...
    

  • Next message: BugALugs478_at_InfamousISP.gov: "Re: Memory-mapped video"

    Relevant Pages

    • [VulnWatch] .MHT Buffer Overflow in Internet Explorer
      ... The format is a standard ... If the encode data is ... one could compromise the client pc by executing ... The followings are some of the identifiers defined for the MIME header. ...
      (VulnWatch)
    • Re: Array size limit in Perl
      ... The data format is as follows, ... And my perl code is as follows. ... Have you tried printing this string rather than just executing it, ... examine the sorted array. ...
      (perl.beginners)
    • Re: exporting crystal report to Excel
      ... when I export it to Excel or some other MS office format like MsWord format. ... So I step through each line and just after executing ... >> Dim oStream As New System.IO.MemoryStream ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: A fundamental question about bytecode and nativecode
      ... machine code is not "really" an intermediate step to microcode - the machine code defines the native platform from Java's point of view. ... Doesn't it get translated to "native format" also? ... pre-compiled executable, which is what the OP had discussed, and that same executable when it's actually executing, same as Mike. ...
      (comp.lang.java.programmer)