When using DSAPI DSGetStageInfo function, how can Passive Stage return codes be handled?
Although DSJ_STAGESTATUS will return a value, Passive stages (for example, Dataset Stages) do not have relevant status return codes. So it is recommended that the DSJ_STAGESTATUS be disregarded for passive stages. The DSGetStageInfo function was designed for Active stages only (for example, Transformer or Load Stages).
Here are some codes for active stage status:
* Executable Stage status types:
EQU DSR.STAGE.RUNNING TO 1 ;* running normally
EQU DSR.STAGE.FINISHED TO 2 ;* last ran without error
EQU DSR.STAGE.ABORTED TO 3 ;* last ran with error
EQU DSR.STAGE.PAUSED TO 4 ;* running but suspended
EQU DSR.STAGE.STOPPED TO 5 ;* last run stopped by operator
EQU DSR.STAGE.NONE TO 6 ;* not compiled
EQU DSR.STAGE.WAITING TO 7 ;* waiting for resource
EQU DSR.STAGE.READY TO 8 ;* ready to start
EQU DSR.STAGE.STARTING TO 9 ;* starting
EQU DSR.STAGE.UNKNOWN TO 10 ;* no status info available for this stage
EQU DSR.STAGE.STATUS.MAX TO 10