|
On 22 February 2018 at 20:24, <dlclark@xxxxxxxxxxxxxxxx> wrote:02:30:39
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 02/22/2018
it isPM:
A given trigger program can always determine the Application Serverprogram
relevant to the file it's on and therefore one way to determine if
usingcase 2 would be to check if that program was in the call stack, by
thean
API ( quite expensive I think? )
Our trigger program calls the system API (QWVRCSTK) to examine
oncecall stack every time it is invoked -- in fact, potentially more than
theper invocation (if SQL was used for the I/O). We wanted to determine
beprogram that caused the I/O and pass that in a modified trigger buffer
header when writing the buffer to a data queue. This doesn't seem to
datahurting our performance, but perhaps it is because we are using the
can'tqueue method so that the trigger program can return control as fast as
possible.
thanks for your reply.
I've used that API a few times, it might be my fallback position if I
think of anything simpler.could
I can't exactly recall why I think it's expensive to call, I guess I
always benchmark it and find out.reason...
That said, I've been slightly guilty lately of making work for myself by
trying to be super efficient, only to find that the IBMi performs so
surprisingly well that I was making my life awkward for no real
As an Amazon Associate we earn from qualifying purchases.
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.