Link row count

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

Link row count

Post by aschindler »

Hi,

I have total ten datastage parallel jobs and i need to capture each job src extraction count and target loading count and load it into audit table.
And the audit table looks like
jobname link_name source_count target_count

Assume that src and tgt link names are same for all jobs.

I have heard about Dslinkgetinfo(),but not sure in parallel jobs.

Please suggest the job design to achieve above functionality.

Quick help would be highly appreciated.
Cheers,
Schindler
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

DSGetLinkInfo() works with all job types.

However, it can also return per-node information in parallel jobs.

Others have already solved your problem. For example download ETLstats from Kim Duke's website for example.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

In version 8.7 and 9.1 you have this functionality out of the box using the Operations Console and its supporting open database. There are tables for job runs and link counts that are collected and loaded from DataStage job reports by utilities bundled and installed with the software.
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

Link row count mismatch

Post by aschindler »

Hi,

I'm using a server routine to get the count,below is the code.

$include DSINCLUDE JOBCONTROL.H

JOBHANDLE=DSAttachJob(JOBNAME,DSJ.ERRFATAL)
Ans:=DSGetLinkInfo(JOBNAME,STAGENAME,LINKNAME,DSJ.LINKROWCOUNT)

But i'm getting count always -1 ,though i could see the count passing through the link.

Please let me know if anything wrong.

P.S: Im using this routine to get the row count of a parallel job
Cheers,
Schindler
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

DSGetLinkInfo needs JOBHANDLE, not JOBNAME.
-craig

"You can never have too many knives" -- Logan Nine Fingers
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

Post by aschindler »

Thanks,

Now its working :)
Cheers,
Schindler
Post Reply