×
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.
Luis,
Here is the URL for an article I wrote in March for SystemiNetwork magazine,
which includes a code sample for a 'generic' trigger program:
http://www.systeminetwork.com/artarchive/newsletter/w/1001/a/54312/index.html.
At the bottom of the article is a link to a zip file containing the code for
several objects including the trigger program itself (called TRGPGMR).
You can use the code in there as I did to retrieve the name of the calling
program. My trigger program uses the QWVRCSTK API (as Eric suggests) to go
back up the call stack ignoring 'Q*' entries until it finds the application
program.
Regards,
Rory
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Luis Rodriguez
Sent: Friday, August 03, 2007 2:18 PM
To: RpgMidrange
Subject: Getting the name of a trigger-causing program
Hi List,
Is there any that I can obtain, in a RPG Trigger processing
program, the name of the program that caused the trigger to
occur in first place?
Thanks,
Luis Rodriguez
As an Amazon Associate we earn from qualifying purchases.