How to stop creation of reject 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
ds_ashish
Participant
Posts: 15
Joined: Thu Nov 23, 2006 12:30 am

How to stop creation of reject file.

Post by ds_ashish »

Hi All,

Requirment:-

Send mail if records get rejected else don't send mail.

The above requirment easily achived in routine or in any scripting language (unix / Perl).

But i want to stop creation of reject file if there is no rejects to reject link :?:

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

Post by ray.wurlod »

If you name a file it will come into existence. Check the row count on the reject link and delete the file, or check the size of the file and delete it if it is zero.
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 »

In other words, you can't. So don't check to see if the file was created, check to see if rows were written to it. DSGetLinkInfo w/ DSJ.LINKROWCNT is one common way.
-craig

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