When using IBM DataStage DSAPI DSGetStageInfo function, how can Passive Stage return codes be handled?

Technote (FAQ)


Question

When using DSAPI DSGetStageInfo function, how can Passive Stage return codes be handled?

Answer

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

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

InfoSphere DataStage

Software version:

8.1, 8.5, 8.7

Operating system(s):

AIX, Linux, Windows

Reference #:

1608484

Modified date:

2012-11-20

Translate my page

Machine Translation

Content navigation