Inaccurate Record counts on links
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 95
- Joined: Thu Sep 24, 2009 12:15 am
- Location: India
Inaccurate Record counts on links
Hi,
How do I get the ACCURATE record counts of links in a job?
I am using the following command
DSGetLinkInfo (handleJob, StgNmTrimed, LinkNmTrimed, DSJ.LINKROWCOUNT) in my basic routine.
I would like to know if the same command can be applied for jobs which are multiinstanced.
This is not working properly. In the first run it shows 9198 records, in the second run it shoes 0 records despite the count being 9198.
When run manually, it shows 9198 records.
When the job is called from a sequence, it shows 0 records.
Thanks in advance.
Deepa
How do I get the ACCURATE record counts of links in a job?
I am using the following command
DSGetLinkInfo (handleJob, StgNmTrimed, LinkNmTrimed, DSJ.LINKROWCOUNT) in my basic routine.
I would like to know if the same command can be applied for jobs which are multiinstanced.
This is not working properly. In the first run it shows 9198 records, in the second run it shoes 0 records despite the count being 9198.
When run manually, it shows 9198 records.
When the job is called from a sequence, it shows 0 records.
Thanks in advance.
Deepa
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 95
- Joined: Thu Sep 24, 2009 12:15 am
- Location: India
-
- Participant
- Posts: 95
- Joined: Thu Sep 24, 2009 12:15 am
- Location: India
If calling in a independent routine
handleJob = DSAttachJob(JobName, DSJ.ERRFATAL)
InvocationID=DSGetJobInfo (handleJob, DSJ.JOBINVOCATIONID )
CurrentJob = JobName:".":InvocationID
StageName="xxxxx"
LinkName="lnk_xxxxx"
InfoType=DSJ.LINKROWCOUNT
Rec_Cnt = DSGetLinkInfo( CurrentJob , StageName, LinkName, InfoType )
Call DSLogInfo ("Rec_Cnt DS : ":Rec_Cnt , ROUTINE_NAME)
handleJob = DSAttachJob(JobName, DSJ.ERRFATAL)
InvocationID=DSGetJobInfo (handleJob, DSJ.JOBINVOCATIONID )
CurrentJob = JobName:".":InvocationID
StageName="xxxxx"
LinkName="lnk_xxxxx"
InfoType=DSJ.LINKROWCOUNT
Rec_Cnt = DSGetLinkInfo( CurrentJob , StageName, LinkName, InfoType )
Call DSLogInfo ("Rec_Cnt DS : ":Rec_Cnt , ROUTINE_NAME)
I don't know how well that function works in a PX job, my direct experience is all in Server where the 'stage' you interrogate is always an active stage, thus typically a Transformer, or things may not go well. Not sure how that all works out in PX, what stage are you pointing it at?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 95
- Joined: Thu Sep 24, 2009 12:15 am
- Location: India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That's not a bug, and it can happen with Copy stage also. There's no count because the stage is optimized out of the design. Inspecting the score can verify that this has happened.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What record count do you get when using the dsrecords command with the Data Set?deepa_shenoy wrote:It is working fine except when the first stage is a Dataset. It keeps giving incorrect record count.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.