× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Joe,

V5R1 introduced the QWVRCSTK (Retrieve Call Stack) API. If you're already on
V5R1 you could wrap that into an RPG/IV program accepting a program name as
parameter 1, and returning the library name of that program in parameter 2.
Let me know if you want a sample program.

Best regards,
Carsten Flensburg


----- Original Message -----
From: "Joe Pluta" <joepluta@PlutaBrothers.com>
To: <midrange-l@midrange.com>
Sent: Thursday, November 15, 2001 5:31 PM
Subject: Getting the library name from a CL program


> Here's a silly question.  I've always been able to get the library a
program
> was called from in RPG by using the program status data structure.  In a
C/S
> environment, this is really important, because it allows you to have
> multiple environments based on just the library you call your initial
> program from.
>
> However, I have never figured out a way to do the same thing from a CL.
> Anybody have any sneaky ways of doing this, or do I just use my tried and
> true method of wrapping the CL program in an RPG wrapper that determines
the
> library?
>
> Joe
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>



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.