row counts
Posted: Thu Dec 01, 2005 1:22 pm
hi
When i searched about row counts in this forum i got following codes.
1.
$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF
StageName = field (InputArg," ",1)
LinkName = field (InputArg," ",2)
RowCount = DSGetLinkInfo(DSJ.ME, StageName, LinkName, DSJ.LINKROWCOUNT)
2.
$INCLUDE DSINCLUDE JOBCONTROL.H
rJobHandle = DSAttachJob(JobName, DSJ.ERRNONE)
If NOT(rJobHandle) Then
Ans = -99
End Else
Ans = DSGetLinkInfo(rJobHandle, StageName, LinkName, DSJ.LINKROWCOUNT)
End
DetachResult = DSDetachJob(rJobHandle)
1.Can i attach this code to the job sequence and get counts daily
2.how can i store the counts in seperate table
3.get email message if there is in drop in counts.
pl advise
[/code]
When i searched about row counts in this forum i got following codes.
1.
$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF
StageName = field (InputArg," ",1)
LinkName = field (InputArg," ",2)
RowCount = DSGetLinkInfo(DSJ.ME, StageName, LinkName, DSJ.LINKROWCOUNT)
2.
$INCLUDE DSINCLUDE JOBCONTROL.H
rJobHandle = DSAttachJob(JobName, DSJ.ERRNONE)
If NOT(rJobHandle) Then
Ans = -99
End Else
Ans = DSGetLinkInfo(rJobHandle, StageName, LinkName, DSJ.LINKROWCOUNT)
End
DetachResult = DSDetachJob(rJobHandle)
1.Can i attach this code to the job sequence and get counts daily
2.how can i store the counts in seperate table
3.get email message if there is in drop in counts.
pl advise
[/code]