Is there a way, to detect inside of a trigger program, what program
actually triggered the trigger? I looked in the PSDS but didn't see
anything readily apparent. Positions 334-343 of psds return the name of
the trigger program itself.

A trigger is a normal program that gets called by the database manager. The PSDS won't behave differently in a trigger -- it'll still have the name of the program itself (not the name of who called it) in those positions. Just like it always does.



What I want to do is assign a trigger *AFTER *READ that will identify
inside the trigger program the program that performed the read event.

There's an entry in the Midrange.com FAQ that discusses this topic: http://faq.midrange.com/data/cache/95.html

The FAQ entry is written in CL, but I converted it to RPG in an article that I wrote for my newsletter. You can find my version at the following link (requires a free "Associate" membership to the iSeries Network):
http://www.iseriesnetwork.com/article.cfm?ID=19026


You might also consider searching the archives of the mailing list.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.