trigger programs

Tags:
Application development
I am using a trigger program to call a display pgm if a file has changed. Is this possible? Is there something else I should be using?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I recommend not doing this unless absolutely necessary. Remember a trigger program is called whenever an update, add, or a delete occurs on a file based on the event you select and this means interactively and in batch jobs. In our company we had such a program that would lock jobs until a user answered the display. It proved safer to call the program to display the screen in the actual program that caused the update and removed it from the trigger program.

If you do decide to proceed with this make sure it is programmed correctly and you do not try to open the display file in a batch job or if will abnormally end and that could cause more harm than good. Also make sure locking a record within this does not cause a problem in other jobs trying to access the data.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TBJSweden
    Send E-mail to the persons that must be informed when the files is change.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: