Hi,
Can anyone tell what are the possible values for DSJ.STAGELASTERR?
I tested in a sample job and it returns a value of -7. The doc says its a string representing the last error on the stage.
I am confused. I am trying to determine if there is any error on a stage and if so, reject rows for the next stage.
Thanks,
Possible Values for DSJ.STAGELASTERR
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
DSJ.STAGELASTERR is a constant, whose value is 2.
It is meant to be used as the second argument of the DSGetStageInfo function when you want to determine whether there was any error in executing the stage.
hJob is a job handle obtained from an earlier call to DSAttachJob, or can be DSJ.ME if executed in the current job.
StageName is the name of the active stage about which you want information, or can be DSJ.ME if the call is executed within the stage.
DSGetStageInfo will return a negative integer if there is any problem with its own execution.
The -7 is an error code DSJE.BADSTAGE, which means that the spelling or casing of the stage name is incorrect, or that the stage name specified simply does not exist as an active stage in the job design.
It is meant to be used as the second argument of the DSGetStageInfo function when you want to determine whether there was any error in executing the stage.
Code: Select all
LastError = DSGetStageInfo(hJob, StageName, DSJ.STAGELASTERR)
StageName is the name of the active stage about which you want information, or can be DSJ.ME if the call is executed within the stage.
DSGetStageInfo will return a negative integer if there is any problem with its own execution.
The -7 is an error code DSJE.BADSTAGE, which means that the spelling or casing of the stage name is incorrect, or that the stage name specified simply does not exist as an active stage in the job design.
Last edited by ray.wurlod on Tue Dec 21, 2004 11:12 pm, edited 1 time in total.
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.