where is the link count stored

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
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

where is the link count stored

Post by zulfi123786 »

Hi

I was trying to find in which record and field of DS_JOBOBJECTS the link counts are stored.

The issue is with multi-instance jobs where dsjob -linkinfo is returning counts of another instance run. This is happening rarely but is happening.

If some one has faced this issue please guide the resolution implemented.

Thanks
- Zulfi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Link counts are not stored in DS_JOBOBJECTS. Only design-time information is stored in DS_JOBOBJECTS. Run time information is stored in hashed files whose names begin with RT_, in XMETA and, if you have it, in the database that supports the DataStage operations console.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Thanks Ray, Could you please share which of the RT tables has the count stored
- Zulfi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

RT_STATUSnnn
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Scanned the RT_STATUSnnn for a specific job and found entries where the link count, link start and end times are captured, sample record (RT_STATUSnnn.@RECORD) shown below
"STAGE$2$2013-03-08 06:14:46$2013-03-08 06:14:59$45678592$5699$$$$$12.5$$$$0$25$2"
The one in bold is the link count but this left me wondering where is the link name, how is it mapped to the link name ?
In the above record it looks like 45678592 is some sort of key for the link name but did not find a mapping between link name and the above number in DS_JOBOBJECTS (making a guess as this should be a design time information).

Please help.
- Zulfi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

FYI - Code tags do not allow bold so I changed you to quote tags which do.
-craig

"You can never have too many knives" -- Logan Nine Fingers
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

chulett wrote:FYI - Code tags do not allow bold so I changed you to quote tags which do.
Thanks Craig
- Zulfi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no such thing as a sample record from RT_STATUSnnn - records for different object types have different structures. Enjoy.

You haven't actually shown the key values. Try this query.

Code: Select all

SELECT @ID FMT '50L', F1 AS OBJECTTYPE FROM RT_STATUS97 USING DICT VOC ORDER BY 1;
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Surprise surprise, I was thinking @RECORD fetches all columns from the table but it looks like @ID is not included in @RECORD.

Thanks Ray, Now I can easy identify the link counts in RT_STATUSnnn after including @ID.
- Zulfi
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Could you please help in understanding if the dsjob -linkinfo picks the count from RT_STATUSnnn or XMETA ?
- Zulfi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I don't know. However you can research this yourself. Source code for dsjob lives - if I recall correctly - in the sample directory under $DSHOME.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... and is listed in one of the manuals.
-craig

"You can never have too many knives" -- Logan Nine Fingers
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

chulett wrote:... and is listed in one of the manuals.
So is the source code for dsjob described in one of the manuals ? Could you please share in which manual as the only reference I have seen is description of dsjob under API chapter which doesnot specify from where (universe or XMETA) the link counts are fetched

Thanks
- Zulfi
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

The documentation of source code for dsjob was found in Server job developer guide of version 7.5
- Zulfi
Post Reply