Count of file

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
swerajan
Participant
Posts: 42
Joined: Tue Aug 05, 2008 4:34 am

Count of file

Post by swerajan »


Hi

I need to get the count of the file and then send a mail if a file contains data. i tried using the execute command in the sequencer to find if the file has data. [ -s filename ] how to proceed further to send a mail??
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

Draw a link from the Execute Command activity to the Notification activity. On the Triggers tab of the Execute Command activity test the exit status of your command (the test command returns 0 or 1). This is available as an activity variable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply