Skip Empty MLoads in Sequencer

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
RRourke
Participant
Posts: 4
Joined: Thu Mar 13, 2003 3:00 pm
Location: Montreal

Skip Empty MLoads in Sequencer

Post by RRourke »

Hi,

Is there a simple(?) way of skipping Mload jobs in a sequencer if the input file is empty?
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

You could write a DataStage routine that receives a file name and location which checks the size of that file. The routine returns true or false depending on whether the file is empty. In the sequence job you would use a routine stage to run the routine and use triggers to either run the job for a populated file or move to the next stage for an empty file.

Vincent McBurney
Data Integration Services
www.intramatix.com
Post Reply