Charles, You said " But is there any way "after the LOAD"? ".
I think this is spot on. You have pinpointed where there is a error in thinking. Determining what did happen (several thousand instructions ago) is not reliably possible in this case. Several things could have happened in the intervening period, such as 1. The set of concatenated libraries being changed (i.e. libraries added or removed). 2. The libraries in the concatenated set being altered (i.e. modules being added, removed or changed). I think the only reliable way to determine which library was used is to ensure the process of returning the module passes that information at the time the module load is performed. At present, I don't think that capability is supplied by LOAD, LINK, etc. Maybe we should request IBM to supply that service. Lennie Dymoke-Bradshaw https://rsclweb.com ‘Dance like no one is watching. Encrypt like everyone is.’ -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Charles Mills Sent: 16 July 2021 18:00 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Concatinated datasets I am not sure that anyone has answered his question.. He understands search order and S806. I *think* what he is asking is this: I write a program. It loads module A, quite successfully, from DD MODULES. MODULES is in fact a concatenation. Can my program determine programmatically at run time which DSN the module came from? The BLDL answer comes close. If instead of just loading the module I were to first (or for that matter, later) do a BLDL then I could search the BLDL return list and find that MODULE was located in concatenation +2, and then there are other methods for finding the DSN's that make up the MODULE concatenation list. But is there any way "after the LOAD"? IOW I have already loaded the module and now I want to learn the source. I don't know. Does CSVQUERY or similar return this info? Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of A T & T Management Sent: Friday, July 16, 2021 6:47 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Concatinated datasets How can one determine where a module is obtained from when the module is in a concatinated dataset list? So for example you want to load module A and your dataset list is://modules dd disp=shr,dsn=hlq1.ds1 has modules qwert // dd disp=shr,dsn=hlq1.ds2 has modules asdf // dd disp=shr,dsn=hlq2.ds5 has modules zxcv So now you would get in return that module A comes from hlq1.ds2 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN