I have an assembler program that determines dataset names of load modules.
Basically, it  does a BLDL on either steplib (via TCBJLB field) or linklist or 
other ddnames 
 to get the concatenation number of the loadlib and then uses
RDJFCB to retrieve the 'allocation retrieval list' (IHAARL) from which the JFCB 
containing
 the JFCBDSNM (dsname) can be obtained.  

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Etienne Thijsse
Sent: Wednesday, September 29, 2010 9:34 AM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Name of a program's library

Thanks Charles,

The thread does not tell me how to do it, but it has a hint that CSVQUERY 
option DATA can be used. This seems to be an assembler service?
I'll see how far I can get with this...

Thanks,

Etienne

On Wed, 29 Sep 2010 05:52:21 -0700, Charles Mills <charl...@mcn.org> 
wrote:

>Take a look at the thread "How tell name of originating load library?" from
>IBMMAIN in 2005 especially GSF's post of Thu 8/18/2005.
>
>Charles
>
>-----Original Message-----
>From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On 
Behalf
>Of Etienne Thijsse
>Sent: Wednesday, September 29, 2010 2:14 AM
>To: IBM-MAIN@bama.ua.edu
>Subject: Name of a program's library
>
>Hi,
>
>Is there a way for a C program (LE) to find out what library (PDSE) it is
>in?
>I expected this information in argv[0], but that only contains the member
>name, not the PDSE itself.
>Is there an LE function for this? Or can it be found in some control block?
>
>Thanks,
>
>Etienne
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to