DSSetUserStatus value is not returning properly
Posted: Tue Nov 25, 2008 3:45 pm
We are trying to capture the status of job with the help of following routine:-
--------------------------------
$INCLUDE DSINCLUDE JOBCONTROL.H
Call DSSetUserStatus (Arg1)
Ans = Arg1
--------------------------------
If Agr1 has Value as 0 then Success or 100 then Failure.This value we are getting with the[/b] Output of this will be used to decide to return the success or failure of the job.
We are calling this server routine at the end of the sequencer, just before exiting it.
Now when i am running a check pointed Sequencer, which has couple of Child sequencers, then in case of failure i am not reseting the master sequencer, so that i can able to start the run from the failed job.
Now even if the Sequencer is getting finished properly incase to re-start, its retruning a value as 0 from the above routine, but user status value is not returning any value or some times it will return a value as 255 from the Command line.
Please let me know whether its going wrong.
--------------------------------
$INCLUDE DSINCLUDE JOBCONTROL.H
Call DSSetUserStatus (Arg1)
Ans = Arg1
--------------------------------
If Agr1 has Value as 0 then Success or 100 then Failure.This value we are getting with the
Code: Select all
$dsadm/dsjob -run -mode NORMAL -warn 0 -wait -param -userstatus $PROJECTName JobName.$IterationNum
Result=`echo $?`
We are calling this server routine at the end of the sequencer, just before exiting it.
Now when i am running a check pointed Sequencer, which has couple of Child sequencers, then in case of failure i am not reseting the master sequencer, so that i can able to start the run from the failed job.
Now even if the Sequencer is getting finished properly incase to re-start, its retruning a value as 0 from the above routine, but user status value is not returning any value or some times it will return a value as 255 from the Command line.
Please let me know whether its going wrong.