get the "compiled" job status in Unix cmd-line int
Posted: Sun Sep 20, 2009 12:19 am
Hello,everyone!
As we know,we can see the job info especially the job status from the DataStage Director like this:
Job_name Status Started On_date Last _ran ......
filter_string Compiled 04:01 AM 12/29/2008 ......
I would like to check whether the jobs are in the "compiled" status or not in the command line interface after I import them .
Is there a Unix command or dssh shell command or SQL which can meet my requirement?
we know that all of the possible job status is like below:
but Equ DSJS.NOTRUNNING To 99 indicates * Any other status not only "compiled".
In that case , the command "dsjob -jobinfo" is not suitable,I think.
So is there any other way that can fulfill my requirement?
* Possible return values for token DSJ.STATUS:
Equ DSJS.RUNNING To 0 ;* This is the only status that means the job is actually running
Equ DSJS.RUNOK To 1 ;* Job finished a normal run with no warnings
Equ DSJS.RUNWARN To 2 ;* Job finished a normal run with warnings
Equ DSJS.RUNFAILED To 3 ;* Job finished a normal run with a fatal error
Equ DSJS.VALOK To 11 ;* Job finished a validation run with no warnings
Equ DSJS.VALWARN To 12 ;* Job finished a validation run with warnings
Equ DSJS.VALFAILED To 13 ;* Job failed a validation run
Equ DSJS.RESET To 21 ;* Job finished a reset run
Equ DSJS.CRASHED To 96 ;* Job has crashed
Equ DSJS.STOPPED To 97 ;* Job was stopped by operator intervention (can't tell run type)
Equ DSJS.NOTRUNNABLE To 98 ;* Job has not been compiled
Equ DSJS.NOTRUNNING To 99 ;* Any other status
As we know,we can see the job info especially the job status from the DataStage Director like this:
Job_name Status Started On_date Last _ran ......
filter_string Compiled 04:01 AM 12/29/2008 ......
I would like to check whether the jobs are in the "compiled" status or not in the command line interface after I import them .
Is there a Unix command or dssh shell command or SQL which can meet my requirement?
we know that all of the possible job status is like below:
but Equ DSJS.NOTRUNNING To 99 indicates * Any other status not only "compiled".
In that case , the command "dsjob -jobinfo" is not suitable,I think.
So is there any other way that can fulfill my requirement?
* Possible return values for token DSJ.STATUS:
Equ DSJS.RUNNING To 0 ;* This is the only status that means the job is actually running
Equ DSJS.RUNOK To 1 ;* Job finished a normal run with no warnings
Equ DSJS.RUNWARN To 2 ;* Job finished a normal run with warnings
Equ DSJS.RUNFAILED To 3 ;* Job finished a normal run with a fatal error
Equ DSJS.VALOK To 11 ;* Job finished a validation run with no warnings
Equ DSJS.VALWARN To 12 ;* Job finished a validation run with warnings
Equ DSJS.VALFAILED To 13 ;* Job failed a validation run
Equ DSJS.RESET To 21 ;* Job finished a reset run
Equ DSJS.CRASHED To 96 ;* Job has crashed
Equ DSJS.STOPPED To 97 ;* Job was stopped by operator intervention (can't tell run type)
Equ DSJS.NOTRUNNABLE To 98 ;* Job has not been compiled
Equ DSJS.NOTRUNNING To 99 ;* Any other status