throughput of link

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
knowledge
Participant
Posts: 101
Joined: Mon Oct 17, 2005 8:14 am

throughput of link

Post 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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes. Look for the DSGetLinkInfo() function.
-craig

"You can never have too many knives" -- Logan Nine Fingers
knowledge
Participant
Posts: 101
Joined: Mon Oct 17, 2005 8:14 am

Post by knowledge »

Thanks a lot..i will check it out
knowledge
Participant
Posts: 101
Joined: Mon Oct 17, 2005 8:14 am

Post 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)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
knowledge
Participant
Posts: 101
Joined: Mon Oct 17, 2005 8:14 am

Post 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...
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

However even if you do some maths, that wont be appropriate.
pandeeswaran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
knowledge
Participant
Posts: 101
Joined: Mon Oct 17, 2005 8:14 am

Post 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 ...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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...
-craig

"You can never have too many knives" -- Logan Nine Fingers
knowledge
Participant
Posts: 101
Joined: Mon Oct 17, 2005 8:14 am

Post by knowledge »

ok ..Lets wait for their Reply ..

Thanks for your help ...
Post Reply