Search found 1 match

by RealControlMUser
24 Jan 2014 11:25
Forum: General News
Topic: How to fail Control-M job with exception thrown from OSQL
Replies: 1
Views: 7508

How to fail Control-M job with exception thrown from OSQL

We created a Control-M with OSQL and expect when the script through an SQL exception it can fail the Control-M, but it does not. The job is still green at the finish and the exception does show up in SYSOUT.

Is there a way the OSQL script is written, when raiseError it can fail/red the job?