× 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.


  • Subject: RE: Determining what library a CL program is called from?
  • From: "Goodbar, Loyd (AFS-Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>
  • Date: Mon, 27 Sep 1999 16:53:08 -0400

If you retrieved the date and time the program was created, you could check
against that. Odds are, unless you copied the program, that the creation
date and time is different between programs. Maybe use the API for the
Display Program Information command (DSPPGM). I don't know if CL programs
have some kind of level identifier.

Loyd

> -----Original Message-----
> From: David Gibbs [SMTP:dgibbs@mks.com]
> Sent: Monday, 27 September, 1999 2:08 PM
> To:   MIDRANGE-L@midrange.com
> Subject:      RE: Determining what library a CL program is called from?
> 
> > Why not include the following at the beginning of your program ? 
> > RTVOBJD OBJ(*LIBL/program_name)  OBJTYPE(*PGM) RTNLIB(&Library) 
> 
> Well, the problem with that is... I want to make sure that I call an EXACT
> copy of myself ... not one of my clones that might just be higher on the
> library list (perhaps stuck in the system library list).
> 
> david 
> 
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.