Page 1 of 1

Routine activity make its work fine but "did not finish

Posted: Mon Jan 19, 2009 10:22 am
by Alethesnake
Hi All,
I hope this is the right forum, on the contrary please forgive me.

I work with DSEE 8.
I wrote the following easy server routine:

Code: Select all

$INCLUDE DSINCLUDE JOBCONTROL.H
Call DSSetUserStatus(Arg1)
Ans = Arg1
(type : transform function) and it runs well.
However, when I call it from a routine activity of a sequence, I get the following warning:
DW00TBCF..JobControl (@UserStatusOK): Routine DSU.DSSetUserStatus did not finish OK, return code = 'OK'
(DSSetUserStatus is also the name of my routine. Bad name choiche, I know..)

I pass 'OK' to the routine, the value is correctly written into the userstatus of the sequence (I checked it out) but I get the mentioned warning.

Am I making something wrong?

Thanks for any help.

Regards,

Ale.

Re: Routine activity make its work fine but "did not fi

Posted: Mon Jan 19, 2009 10:30 am
by priyadarshikunal
Alethesnake wrote:Hi All,
I hope this is the right forum, on the contrary please forgive me.

I work with DSEE 8.
I wrote the following easy server routine:

Code: Select all

$INCLUDE DSINCLUDE JOBCONTROL.H
Call DSSetUserStatus(Arg1)
Ans = Arg1
(type : transform function) and it runs well.
However, when I call it from a routine activity of a sequence, I get the following warning:
DW00TBCF..JobControl (@UserStatusOK): Routine DSU.DSSetUserStatus did not finish OK, return code = 'OK'
(DSSetUserStatus is also the name of my routine. Bad name choiche, I know..)

I pass 'OK' to the routine, the value is correctly written into the userstatus of the sequence (I checked it out) but I get the mentioned warning.

Am I making something wrong?

Thanks for any help.

Regards,

Ale.
The only thing wrong is passing OK as a return value. In routine every thing returned except 0 means the status is not OK. So if the routine is successful pass 0 instead of OK.

Regards,

Posted: Mon Jan 19, 2009 10:43 am
by chulett
A search for "did not finish OK" would show that this question has been asked and answered alot, most recently here.

Posted: Mon Jan 19, 2009 10:49 am
by Alethesnake
Thanks a lot to both of you.

Sorry for the search, I used the wrong terms.

Bye,

Ale.

Posted: Mon Jan 19, 2009 10:51 am
by priyadarshikunal
Alethesnake wrote:Thanks a lot to both of you.

Sorry for the search, I used the wrong terms.

Bye,

Ale.
if the problem is resolved please mark this topic as resolved.