Schedule Job automatically

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Vishvas
Participant
Posts: 34
Joined: Sat Jun 21, 2003 3:52 am

Schedule Job automatically

Post by Vishvas »

We have more than 30 schedules in our project. In case of any downtime we haev to reschedule all the 30 schedules manually. This is time consuming and error prone. So I was thinking of some solution where we can have the schedules in a excel and a job will read the excel and change the schedules accordingly.

I know that Datastage uses UNIX scheduler for scheduling. crontab & at will give you the info about all the schedules. But if you change the crontab / at schedule at the backend it doesn't affect the schedule in the DataStage Director.

Is there anyway to build such a job for rescheduling.

Arun
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No.

But, if you capture the queued commands for cron and/or at while things are good, you can resubmit directly onto the queues.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Vishvas
Participant
Posts: 34
Joined: Sat Jun 21, 2003 3:52 am

Post by Vishvas »

The only issue is that it won't be reflected in the director. The director will show a different schedule and the job will run at different schedule.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's not true... all the Director does is read the crontab entries for the logged in user and show any of the "DataStage ones" that it finds. Any proper change on the underside should show just fine, AFAIK. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

Vishvas wrote:The only issue is that it won't be reflected in the director. The director will show a different schedule and the job will run at different schedule.
Most people wouldn't use Director as the scheduling tool. Director through cron is a time based tool that cannot take into account the dependencies usually needed to build out a warehouse or any other system. This would cause you to build out super-sequence jobs, essentially putting every job and every dependency within a sequence. This would ensure that no job starts before its upstream dependency is complete, but is very rigid in structure. The rigidity will cause problems in the future if you need to rework your dependent objects based upon new requirements or peaks in your hardware utilization.

If you insist on timebased scheduling, I would ask if you have a scheduling tool in-house such as CTRL-M or Active Batch. These tools have the functionality built into them that you desire. IBM is not investing in the scheduler, so I wouldn't expect to see any improvement in the functionality in the future.

Just curious if you have thought about a pure dependency based scheduling model, without the time constraints of a scheduling tool. You would essentially track what is needed for a job to start, and when all of the upstreams dependencies kick off the next job.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... that's a whole 'nuther discussion and really outside of the scope of what was being asked here. All pretty much true, however. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

chulett wrote:Well... that's a whole 'nuther discussion and really outside of the scope of what was being asked here. All pretty much true, however. :wink:
True. I could have answered the question without opening another discussion. However, when people are trying to make a square peg fit in a round hole I want them to know it.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... and one man's round hole is another man's square hole. Or something like that. LOL
-craig

"You can never have too many knives" -- Logan Nine Fingers
Vishvas
Participant
Posts: 34
Joined: Sat Jun 21, 2003 3:52 am

Post by Vishvas »

No, Datastage Director doesn't reflect the changes to the timings made at the backend. It takes the details from RT_CONFIGnnn file for displaying. But if you delete a schedule from backend, that will be reflected in the Director.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's... interesting. Too bad I don't have any way to play around with or test anything like that. :(
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply