× 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: Sv: Can a called-program identify the calling program?
  • From: "Henrik Krebs" <hkrebs@xxxxxxxxx>
  • Date: Thu, 8 Apr 1999 00:07:31 +0200

> Is there a method for Program B to identify
> and capture the name of the program which called it

I don't know any direct method for RPG-programs. But let RPG Program B
call CLP Program C. Now this cl program should send a program message to
(* *PRV). Then recieve it again (and as well remove it) while also
retrieving the 'sender' info. This includes the string 'PROGRAMB'.
Another msg sent to ('PROGRAMB' *PRV) and another recieve will give you
the string 'PROGRAMA'.

It's time for bed now (and takes 20 min to turn on my AS/400), but give
me a bib if you want more specific code.


Regards

Henrik Krebs

------------------------------------------------------------
Henrik Krebs
IT Consultant (IBM AS/400)
Phone +45 55 44 26 50
Mobile +45 40 88 83 23
Email: hkrebs@hkrebs.dk
Web: http://www.hkrebs.dk/
Snailmail: Kokhaven 8, DK-4736  Karrebaeksminde
------------------------------------------------------------

----------
> Fra: as400mail@smtpmail.nationcredit.com
> Til: MIDRANGE-L@midrange.com
> Emne: Can a called-program identify the calling program?
> Dato: 7. april 1999 14:37
> 
> RPG Program A calls RPG Program B. Is there a method for Program B to
identify
> and capture the name of the program which called it, e.g. via local
data area,
> program structure, API, etc?
> 
> Thanks in advance,
> 
> David Stobberingh
> Nationwide Credit, Inc.
> Phoenix, AZ

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