Job completes successfully however not ok

Post Reply
User avatar
raven
Nouveau
Nouveau
Posts: 6
Joined: 05 Dec 2008 12:00

Job completes successfully however not ok

Post by raven » 07 Sep 2009 1:16

Hi,

I have been seeing this for a past few days, that though the job executes successfully, the status of the job goes to red(NOT OK). Unsure why this could be happening.

Any help appreciated.


- Raven

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 07 Sep 2009 2:30

as you know, not ok is the result of a non zero return code from the script somewhere.
how did you ensure about the returned code ?
can you remember about the sysout and the log of the job at this particular moment ?

what did you code as on do statement ?

regards
philmalmaison

User avatar
samirniljikar
Nouveau
Nouveau
Posts: 2
Joined: 17 Sep 2009 12:00

Post by samirniljikar » 17 Sep 2009 4:51

As mentioned in the earlier reply,please check if there is an Do ReRun statement in the Steps.Plus if there is an incorrect condition put like Compstat ! 0 in the Alert to ECS step.Also,Is the job setup to Auto rerun?On Control-M for a non-cyclic job to Auto-Rerun,it first has to be in Failed State.Hence regardless of the job being Ended ok

Post Reply