Page 1 of 1

How do you make the job in runnable state after aborts

Posted: Thu Nov 10, 2005 9:28 am
by reddy
Hi Guys,

Good morning.

I have a Scheduled job which runs daily but my problem is if the job aborts on one day i have reset manually and then run.

But i want to do it automatically.

Note: i know how to do it in Job Sequence.


Please help me out.

Thnaks
Reddy

Posted: Thu Nov 10, 2005 9:35 am
by ArndW
One of the options in a sequence lets you reset a job before running. This is exactly what you need. You can also trigger this through a dsjob -run -reset call from the command line if you prefer that approach.

Posted: Thu Nov 10, 2005 9:44 am
by reddy
Hi,

Thanks for reply.

But i am not using a Sequence this is only a single job,How can i run a job with Reset if Required and then Run option like in Job Sequence.

Thanks
Reddy

Posted: Thu Nov 10, 2005 10:42 am
by poorna_76
reddy wrote:Hi,

Thanks for reply.

But i am not using a Sequence this is only a single job,How can i run a job with Reset if Required and then Run option like in Job Sequence.

Thanks
Reddy
How r u running your job?

Is it manually/ through Jobcontrol/ ?

Posted: Thu Nov 10, 2005 12:25 pm
by reddy
It's a Scheduled job.

Posted: Thu Nov 10, 2005 12:48 pm
by Raghumreddy
Scheduled through windows scheduler ?

Write a batch file to read the job from command prompt and add the .bat file to scheduler

As others discussed you can reset a job and Run with DSJOB command.
reddy wrote:It's a Scheduled job.

Posted: Thu Nov 10, 2005 2:15 pm
by ray.wurlod
What you want to do is not possible with a job in isolation.

The "reset if required" functionality can only be performed in some kind of wrapper, such as a job sequence or a shell script.

Posted: Thu Nov 10, 2005 2:42 pm
by reddy
Thanks guys.I am going to create Sequencer.

Thanks
Reddy