Page 1 of 1

throughput of link

Posted: Wed Mar 07, 2012 11:13 am
by knowledge
Hi ,

I am collecting statistics of datastage job using datstage macro and share container ..

Is there any way we can capture throughput of particular link i.e rows /sec after its completion..

Please advice ...

Thanks.

Posted: Wed Mar 07, 2012 1:11 pm
by chulett
Yes. Look for the DSGetLinkInfo() function.

Posted: Thu Mar 08, 2012 10:55 am
by knowledge
Thanks a lot..i will check it out

Posted: Fri Mar 09, 2012 8:38 am
by knowledge
Hi ,

I checked DSlinkinfo , but there is no option for no of rows /sec , following r options ...any input is appreciated ...

DSJ_LINKLASTERR
The last error message reported from a link.
DSJ_LINKNAME
Actual name of link.
DSJ_LINKROWCOUNT
The number of rows that have been passed down a link.
DSJ_LINKSQLSTATE
SQLSTATE value from last error message.
DSJ_LINKDBMSCODE
DBMSCODE value from last error message.
DSJ_LINKDESC
Description of the link.
DSJ_LINKSTAGE
Name of the stage at the other end of the link.
DSJ_INSTROWCOUNT
Comma-separated list of row counts, one per instance (parallel jobs)

Posted: Fri Mar 09, 2012 9:36 am
by chulett
No there isn't, not explicitly. You'll need to get the LINKROWCOUNT and the elapsed time for the run and do some maths. Use DSGetJobInfo() for the latter.

Posted: Sat Mar 10, 2012 12:21 pm
by knowledge
Hi ,

Elapsed time is the total time for job , I would like to calculate time taken for particular link ..

so the equation would be : No of row for link abc/ time taken to process those rows on abc .

Pl suggest...

Posted: Sat Mar 10, 2012 10:44 pm
by pandeesh
However even if you do some maths, that wont be appropriate.

Posted: Sun Mar 11, 2012 7:34 am
by chulett
What wouldn't be "appropriate" about it? :?

If you are going to make statements like that, please also take the time to explain them.

Posted: Sun Mar 11, 2012 7:37 am
by chulett
knowledge wrote:Elapsed time is the total time for job , I would like to calculate time taken for particular link
Unless you have a job with a process break then each link runs for the duration of the job. Regardless, someone smarter than me would have to say if there was any place that link start/stop times are recorded.

Posted: Mon Mar 12, 2012 7:44 am
by knowledge
Hi Craig,

If what you say is right then I will take Elapsed time , which is total time for job ...

So my equation would be :

No of processed rows for particular link /Elapsed time ...

Posted: Mon Mar 12, 2012 7:46 am
by chulett
As I said, typically it would be right but not always, depends on the job design and also if buffering is involved. Would be curious what one of the Grognards think...

Posted: Mon Mar 12, 2012 8:33 am
by knowledge
ok ..Lets wait for their Reply ..

Thanks for your help ...