Page 1 of 1

Job finish with DSJS.RUNWARN

Posted: Tue Dec 08, 2009 5:10 am
by pqrabc
The statua DSJS.RUNWARN is obtained when job finishes a normal run with warning.How can i achieve this.The job should not abort but finish with warning.

Posted: Tue Dec 08, 2009 5:23 am
by Sainath.Srinivasan
Maybe you need to rephrase your question and provide more details on what you are running and from which utility.

Posted: Tue Dec 08, 2009 5:33 am
by vinsashi
Hi,
if jobs are in job sequence in job activity stage we should set triggers for that. In triggers we should set expression type as custom and write expression call activityvarible jobstatus=runok(system varible) or jobstatus=runwarn(systemvarible). then the job wont abort and after finishing if u have any warning the result is finished with warnings.

Thanks
v..

Posted: Tue Dec 08, 2009 5:38 am
by kamalshil
vinsashi wrote:Hi,
if jobs are in job sequence in job activity stage we should set triggers for that. In triggers we should set expression type as custom and write expression call activityvarible jobstatus=runok(system varible) or jobstatus=runwarn(systemvarible). then the job wont abort and after finishing if u have any warning the result is finished with warnings.

Thanks
v..
Hi,
You can start new post for this.
or this is same question as you would be from same team.

Posted: Tue Dec 08, 2009 5:46 am
by vinsashi
i am giving idea for that one not same team

Re: Job finish with DSJS.RUNWARN

Posted: Tue Dec 08, 2009 5:48 am
by deb033
Hi,

You can also achieve this by setting the trigger in that link as --
"Executed ok" OR "Execution finished with warnings".

Posted: Tue Dec 08, 2009 6:33 am
by chulett
The "this" to achieve here has nothing to do with the original question, unfortunately, but rather from a misplaced bit of advice.

Re: Job finish with DSJS.RUNWARN

Posted: Tue Dec 08, 2009 6:38 am
by chulett
pqrabc wrote:The status DSJS.RUNWARN is obtained when job finishes a normal run with warning. How can i achieve this. The job should not abort but finish with warning.
I'm afraid this doesn't make much sense yet. Once a job decides to abort there's no way to make it end with a different status. Are you asking about the warning limit you can set at runtime that says to abort the job after X warnings? That can be set to unlimited so what warnings don't cause aborts. Not a great idea but you can do it.

Actually, as requested can you clarify your question or situation please.

Posted: Tue Dec 08, 2009 1:19 pm
by ray.wurlod
There is only one way to prevent a job from aborting, and that is to design it so that it does not abort.

Some aborts (for example database unavailable) can not be designed around.

There is NO WAY to demote an abort message to a warning; indeed server jobs do not support message handlers at all.