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
reddy
Premium Member
Posts: 168 Joined: Tue Dec 07, 2004 12:54 pm
Post
by reddy » Thu Nov 10, 2005 9:28 am
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 » Thu Nov 10, 2005 9:35 am
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
Posts: 168 Joined: Tue Dec 07, 2004 12:54 pm
Post
by reddy » Thu Nov 10, 2005 9:44 am
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
Posts: 190 Joined: Thu Jul 08, 2004 10:42 am
Post
by poorna_76 » Thu Nov 10, 2005 10:42 am
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
Posts: 168 Joined: Tue Dec 07, 2004 12:54 pm
Post
by reddy » Thu Nov 10, 2005 12:25 pm
It's a Scheduled job.
Raghumreddy
Participant
Posts: 24 Joined: Fri Aug 26, 2005 3:52 pm
Contact:
Post
by Raghumreddy » Thu Nov 10, 2005 12:48 pm
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 » Thu Nov 10, 2005 2:15 pm
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
Posts: 168 Joined: Tue Dec 07, 2004 12:54 pm
Post
by reddy » Thu Nov 10, 2005 2:42 pm
Thanks guys.I am going to create Sequencer.
Thanks
Reddy