The _MATPGMNM MI builtin will let you retrieve both the program name and it's library. (This works without resorting to searching the library list.)

I published an example of this back in Sept 2004:
http://systeminetwork.com/article/how-retrieve-programs-name-cl

The code in that article was contributed by Herman Van der Staey. For your conveniences, I've copy/pasted it to code.midrange here:
http://code.midrange.com/0079bc50c2.html


On 11/7/2011 12:48 PM, James Lampert wrote:
Is there an easy way for a CL program to know what library it's located in?

It needs to access a similarly named IFS directory, according to the
library where it lives.

--
JHHL


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.