×
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.
This is what we use. You can totally do this with API's, but I was lazy.
Code in the trigger:
*
* Ignore booking related changes to inventory.
*
C eval IgnDBchg = ChkInvStk('PR0305R')
ILE procedure:
* **********************************************************
* Check invocation stack for a program.
* **********************************************************
P ChkInvStk B Export
*
D ChkInvStk PI like(StdInd)
D PgmNam like(StdNam) value
*
D PgmFnd s like(StdInd) inz
* ---------------------------------------------------------
*
* If program ID is blank, just return.
*
C if PgmNam = *blanks
C return *off
C endif
*
* Call CL program to perform the check.
*
C CALL 'UT1130C'
C PARM PgmNam
C PARM PgmFnd
*
C return PgmFnd
*
P ChkInvStk E
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Troy Foster
Sent: Friday, August 03, 2007 12:31 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Getting the name of a trigger-causing program
This mailing list archive is Copyright 1997-2025 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.