Seeing a working example would be helpful. Thanks.

John McKee
-----Original message-----
From: Pete Hall pete@xxxxxxxxxxxxxx
Date: Tue, 10 May 2011 18:09:13 -0500
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Creating a trigger program

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

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?

John McKee


The old and new record images (for inserts, the old image is invalid)
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...

- --
Pete Hall
pete@xxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk3JxZQACgkQXczQcKdXKg7QnACgh4hgKaTRuMwFlksPK/tx4ojK
a0gAn2sY10U898eIJ8WEYwmOfznOYnsE
=+VPp
-----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,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 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.