Skip to Content
author's profile photo Former Member
Former Member

Forcing an Job to end in a script

Post Author: Thang Nguyen

CA Forum: Data Integration

Hi,

I want to end a job straight away if an occurance is currently running. This to stop someone accidentally submitted the job if it's already running. Does any one know if I can set this up in DI?

If not then I thought about adding the run status to a table in SQL and them having a script in DI that queries that value. If set then end the job. I want to avoid a conditional step because all the scripts and workflows have set up in the job and there's not easy way of moving all of these into the conditional step.

Thanks

Thang

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 14, 2007 at 07:58 PM

    Post Author: msavage

    CA Forum: Data Integration

    I am not aware of any way to do this natively in DI. I do it the same way that you suggested in a control table with a flag that is queried before each job to get the status.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2007 at 03:11 PM

    Post Author: wdaehn

    CA Forum: Data Integration

    Whereever you call the raise_exception() function, it will behave as if an unrecoverable error happend. So if you call it after a DF inside a script, no further object will be started the the job marked as terminated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.