Count issue
Posted: Thu Jun 14, 2012 7:52 am
Hi,
I have probelm reagrding getting Target count using routine which i am using in sequence.The rotuine is as follows
$INCLUDE DSINCLUDE JOBCONTROL.H
valid = @FALSE
Hjob1=DSAttachJob(JobName,DSJ.ERRFATAL)
Status=DSGetJobInfo(Hjob1,DSJ.JOBSTATUS)
Call DSLogInfo("Status of the job is ":Status,"Routine")
count1=DSGetLinkInfo (Hjob1, SStage, SLink,DSJ.LINKROWCOUNT)
Call DSLogInfo("Source Count is ":count1,"Routine")
count2=DSGetLinkInfo (Hjob1, TStage, TLink,DSJ.LINKROWCOUNT)
Call DSLogInfo("target Count is ":count2,"Routine")
count3=DSGetLinkInfo (Hjob1, UStage, ULink,DSJ.LINKROWCOUNT)
Call DSLogInfo("Source Count is ":count3,"Routine")
count4=DSGetLinkInfo (Hjob1, DStage, DLink,DSJ.LINKROWCOUNT)
Call DSLogInfo("target Count is ":count4,"Routine")
Count = count1 : '|' : count2 : '|' : count3: '|' : count4
Call DSLogInfo("Total Counts After Concatination ":Count ,"Routine")
Ans=Count
This i am using in sequence to get source and target count.
My job design is
db2
.
DB2............................look up .........copy....................dataset
when i use this job in sequence couldn't be able to get target count but after changing the dataset with sequential file and then use job in sequnece,and run it then i am able to see the target count using that routine.
I don't know why its working for sequential file/other stages not for dataset.I had tested that routine and showing the target count but in job i didn't get.
I have probelm reagrding getting Target count using routine which i am using in sequence.The rotuine is as follows
$INCLUDE DSINCLUDE JOBCONTROL.H
valid = @FALSE
Hjob1=DSAttachJob(JobName,DSJ.ERRFATAL)
Status=DSGetJobInfo(Hjob1,DSJ.JOBSTATUS)
Call DSLogInfo("Status of the job is ":Status,"Routine")
count1=DSGetLinkInfo (Hjob1, SStage, SLink,DSJ.LINKROWCOUNT)
Call DSLogInfo("Source Count is ":count1,"Routine")
count2=DSGetLinkInfo (Hjob1, TStage, TLink,DSJ.LINKROWCOUNT)
Call DSLogInfo("target Count is ":count2,"Routine")
count3=DSGetLinkInfo (Hjob1, UStage, ULink,DSJ.LINKROWCOUNT)
Call DSLogInfo("Source Count is ":count3,"Routine")
count4=DSGetLinkInfo (Hjob1, DStage, DLink,DSJ.LINKROWCOUNT)
Call DSLogInfo("target Count is ":count4,"Routine")
Count = count1 : '|' : count2 : '|' : count3: '|' : count4
Call DSLogInfo("Total Counts After Concatination ":Count ,"Routine")
Ans=Count
This i am using in sequence to get source and target count.
My job design is
db2
.
DB2............................look up .........copy....................dataset
when i use this job in sequence couldn't be able to get target count but after changing the dataset with sequential file and then use job in sequnece,and run it then i am able to see the target count using that routine.
I don't know why its working for sequential file/other stages not for dataset.I had tested that routine and showing the target count but in job i didn't get.