On 11/5/2014 7:54 AM, Steve Richter wrote:
one way to do this is to write the procedure name to a field in the file.
That way it will be there in the data portion of the journal entry. To
reliably do that we would need an RPG %procname( ) built in function.

I use qwvrcstk for that.

Does the system returned the journal seqnbr somewhere? Where it would be
available to a trigger after exit program. That way the trigger exit
program could retrieve the procedure name from the call stack and match it
with the journal entry sequence number and store the pair to a journal
adjunct table.

No. The journal is an independent and asynchronous process from the
actual database update.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.