I have a job where i use a roune that attaches the job and uses DSGetLinkInfo function to get the link statistics of all links in the ETL job.
The routine works well with all links in the job howewer when the link is an input to the container i get an error Unknown link -9. Is there a way in which i can get the link stats for the link that writes to the container.
Below is the code in the routine
$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF
handleJob = DSAttachJob(JobName,DSJ.ERRWARN)
Ans = DSGetLinkInfo (handleJob, StageName, LinkName, DSJ.LINKROWCOUNT)
DetachResult = DSDetachJob(handleJob)
DSGetLinkInfo error
Moderators: chulett, rschirm, roy