Previous Topic: Work with Trigger References (YWRKTRGREF)Next Topic: Model to Run-Time Conversion


Reload Trigger References (YRLDTRGREF)

The Reload Trigger References (YRLDTRGREF) command forces the Trigger Router (YTRIGGER) to reload its internal memory with the latest data from the Trigger References File (YTRGCTLP).

Trigger Reference Data in the Trigger Router

When the Trigger Router is first invoked within a job (because a trigger fires and the Trigger Router is defined as the trigger program), it loads the data from the Trigger References File into internal memory. On subsequent invocations within the same job, it uses the data it stored in memory rather than re-accessing the Trigger References File.

This processing ensures the best possible performance, since file I/O to the Trigger References File is performed only once during a job, rather than every time the Trigger Router is invoked. However, if changes are made to the data in the Trigger References File, these changes will not be reflected in the data used by the Trigger Router.

If you have made changes to the data in the Trigger References File you can execute this command to ensure that the next time the Trigger Router is invoked, it will use the changed data.

Note: Since each job has its own instance of the Trigger Router (with its own internal memory), you must run this command within the job that caused the Trigger Router to be invoked.