Trigger of Events

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
asitagrawal
Premium Member
Premium Member
Posts: 273
Joined: Wed Oct 18, 2006 12:20 pm
Location: Porto

Trigger of Events

Post by asitagrawal »

Hi All,

Below is the job design:

Code: Select all

Seq01----------+-------->Seq02
               |
               |
               V
           Routine   
The Routine is coded for a loop where it waits for 10 files to arrive in a particular location. It issues DIR commands to check for the files.

The Trigger Condition are as follows:
For Seq01-Seq02: Seq01.$JobStatus=1 OR Seq01.$JobStatus=2
For Seq01-Routine: Seq01.$JobStatus=1 OR Seq01.$JobStatus=2

Now, in the latest run fo the process, the Seq01 has finished Ok.... and it triggerred the Routine first and since the files for whcih it was waiting , were not present so it kept waiting in a loop, but I am unable to understand that why the Seq02 did not trigger at all ?

Anyhow, I created 10 dummy files so that the routine came out of the loop and then Seq02 started !!

Please help in understanding the problem.
Share to Learn, and Learn to Share.
asitagrawal
Premium Member
Premium Member
Posts: 273
Joined: Wed Oct 18, 2006 12:20 pm
Location: Porto

Post by asitagrawal »

The problem has been resolved... bye replacing the routine by a sequence...
Share to Learn, and Learn to Share.
Post Reply