-----BEGIN PGP SIGNED MESSAGE-----
On 2011-05-09 21:56, jmmckee wrote:
We are looking into a process to notify doctors, via email, when one of their patients has been admitted. When a patient is admitted, a record is written to a log file. Current idea being tossed around is to read the log file from the previous day and srnd emails as needed. I thought this might be an ideal application for a trigger program. I could see the trigger getting fired on a write to the log file. All I would want to do is pass the data to be written to a program and the program would either send or not send an email. From looking at some documentation, I see that there is space for a before and an after image.The old and new record images (for inserts, the old image is invalid)
These sound like dumb questions to me: Is it as simple as referencing the log file as an external data structure? Then, moving the after image to that data structure?
are available in the trigger. I've got a (very old) RPG trigger template
you could have if you like. All you really need to do is name the data
structures for the trigger buffer and code the action you want to occur.
I've been using it for years with no issues. I've even got a document
somewhere that describes how it works. Let me know...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.