Trigger file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Trigger file

Post by rajudx »

Hi,

I need to create one Trigger file for that I have designed the job like below.

db2 stage----------->Transformer--------------->Target file.
--------------->Trigger file(Zero byte)

My requirement is whenever target file is created successfully than only creation of trigger file will be required.
Please let me know what constraint I have to write in transformer stage.


Thanks,
Raju.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome. :D

Use ExecSH as an after-job subroutine to create the trigger file (for example using echo > #TriggerFile# as the command). There is a check box "only execute after-job subroutine if job successful" - check that.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Nice. The important thing to realize is no constraint will fulfill the requirements and even adding an aggregator for a 'last' trigger would not guarantee 'only on successful creation'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply