Has anyone said this? It might not have come from any DSN, right? I do a 
GETMAIN, I move or build some code somehow in the GETMAIN storage, I do an 
IDENTIFY. What DSN did that entry point come from?

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Walt Farrell
Sent: Wednesday, January 27, 2016 11:11 AM
To: [email protected]
Subject: Re: Need to find the DSN from where load module was loaded

On Wed, 27 Jan 2016 10:21:55 -0600, Support, DUNNIT SYSTEMS LTD. 
<[email protected]> wrote:

>Thank you for sending me the code. I haven't looked at it yet but I'll narrow 
>down what I'm talking about:
>
>1. Environment is batch or ISPF. Check is during execution. Code is Assembler.
>2. Looking for origin DSN of program module which was loaded via LOAD macro.
>3. Loadlib can be in JOBLIB, STEPLIB or ISPF LIBDEF.
>4. There may be multiple loadlibs concatenated together in the DD allocation.

You still haven't said why you are doing this, and what you hope to accomplish 
with the information. That may be important to getting the best answer.

For the general case, as far as I know, you cannot determine the answer with 
certainty. For some specific cases of module access you may be able to 
determine the answer with a fair degree of certainty, but probably not 100% 
unless you are the owner of the code that loaded the module, and can guarantee 
the environment that code is running in.

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

Reply via email to