Send a notification mail when count mismatches

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
dr.murthy
Participant
Posts: 224
Joined: Sun Dec 07, 2008 8:47 am
Location: delhi

Send a notification mail when count mismatches

Post by dr.murthy »

Hi ...

I have an requirement like to send a notification mail if the count of records in two tables not same, those two tables populated in same job.

Any suggestions how to handle this
D.N .MURTHY
rsunny
Participant
Posts: 223
Joined: Sat Jul 03, 2010 10:22 pm

Re: Send a notification mail when count mismatches

Post by rsunny »

dr.murthy wrote:Hi ...

I have an requirement like to send a notification mail if the count of records in two tables not same, those two tables populated in same job.

Any suggestions how to handle this
Compare the two counts may be like

if count1=count2 then 'Y' else 'N' and use DSSETUSERSTATUS routine

and then send a notification only when userstatus='N'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why bother with the "Y" and "N"?

Code: Select all

If Count1 <> Count2 Then Call DSSetUserStatus(arg) Else NULL
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