Example to use FILE_TRIGGER with CONTINUOUS(*)

Document ID : KB000054431
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

We need to implement FILE_TRIGGER with CONTINUOUS(*), but don't know how to have FILE_TRIGGER in the same ESP Proc as the agent workloads.

Solution:

Using CONTINUOUS(*) allows you to avoid defining an alert. Also adding IF logic can make FILE_TRIGGER and agent workload stay in same ESP Proc, even though different APPL generations will be created.

Here is an example
IF %MNJOB NE '' THEN
DO
APPL AGTJOBS /* define all the agent JOBs that should run after the FILE_TRIGGER fires */

....
ENDDO
ELSE
DO
APPL FILETR /* define the FILE_TRIGGER with CONTINUOUS(*) */
...
ENDDO