How do you make the job in runnable state after aborts

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

How do you make the job in runnable state after aborts

Post 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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post 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
poorna_76
Charter Member
Charter Member
Posts: 190
Joined: Thu Jul 08, 2004 10:42 am

Post 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/ ?
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

It's a Scheduled job.
Raghumreddy
Participant
Posts: 24
Joined: Fri Aug 26, 2005 3:52 pm
Contact:

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

Thanks guys.I am going to create Sequencer.

Thanks
Reddy
Post Reply