DataStage job scheduling problem

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

DataStage job scheduling problem

Post by mydsworld »

I have a DataStage parallel job to schedule which has the following requirement :

In 4 weeks of a month,

1. It needs to be invoked 1st Satday with parameter A,B
2. Next Satday with C,D
3. Next Satday with E,F
4. Next Satday with G,H

Please advise whether this is possible through DataStage Director. I didn't find any every 'n' th kind of scheduling option.Scheduling with every Satday option creates problem as the parameters are different.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

If your question is just is it possible through Datastage Director.
Then it is no.
Is using any external scheduling tools an option for you?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, you can but it's not elegant. Do one 'Next Saturday' with the proper parameters and then after it runs, remember to schedule in the next one. Lather, rinse, repeat. Either that or say (this month) the 'Next 6th' then 'Next 13th' then 'Next 20th' (etc) and repeat only once a month.

Better bet is via an Enterprise Scheduler as Narisimha notes, something without the 'limitations' of cron.
-craig

"You can never have too many knives" -- Logan Nine Fingers
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Scheduling option

Post by mydsworld »

Thanks for your response.

Actually there is a limitation of changing the schedule manually (after every run).So, can you please suggest any external scheduling tool that can be used with DataStage Director to do that kind of scheduling.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Pretty much any one, actually. What one, if any, does your company use? Leverage the 'dsjob' command line utility to allow it to run your jobs. This executable is quite thoroughly explained in either of the Developer's Guides in the Command Line Interface section near the end.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Or if this completely falls on your shoulders then you can incorporate this logic is a small script. The script will take the current date and check if its first saturday, second, third or fourth. Depending upon that it will assign the parameters via the dsjob command and run the job. You can also incorporate this functionality in a sequence job that gets executed every saturday. The sequence will have a routine activity stage which will return a value depending upon the week and you can branch your execution to a particular job with the appropriate parameters.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply