|
> I have written a trigger program in RPG (my first) which is working ok, > but my problem is that I need to be able to capture the userid that > tripped the trigger. I have searched for a solution but can't seem to > find one. Unless you're using the "Set Profile" or "Set to Profile Token" APIs, the userid who tripped the trigger will always been the same user that the trigger itself is running under. (Triggers run in the same job as the program that triggered them) Therefore, you can get the userid from the program status data structure, just as you would for any other program. If you're not already familiar with using the PSDS to retrieve the userid, let me know and I'll dig up some sample code.
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.