Sechduling job through autosys on every Tuesday

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
vasam
Participant
Posts: 30
Joined: Wed Nov 04, 2009 5:06 am

Sechduling job through autosys on every Tuesday

Post by vasam »

Hi All,

I have a scenario like i want to schedule my autosys jobs every Tuesday of week and 29 th june ..If 29th of june comes on Tuesday, i want to run my job only one time.How can i schedule my jobs through autosys?

Thanks in Advance
Vijay
vijayakumargoud
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That sounds like a question for your AutoSys people.

Regardless of the scheduling mechanism, one option is to run the scheduled job every day and then check if it is Tuesday or June 29th. The 'trick' is to schedule a Sequence job that does the check and then only runs the actual processing job if the condition is true. Saves all that futzing around with the scheduler itself.
-craig

"You can never have too many knives" -- Logan Nine Fingers
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Post by swapnilverma »

Use days_of_week option TUE
Start time :- what ever time you want.

It will run on every Tuesday and you dont have to worry abt leap year ..

pzl revert if you need any other info ?
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

OK so the math is Every Tuesday you want to run the job and you also want to run the job on June 29th. If June 29th also falls on a Tuesday, do not run the job a second time.


I would set up two events. The "Every Tuesday" should be simple.
The June 29th would have the special conditional logic in it. I would not do that logic in the DataStage job itself.

Most likely you are triggering an external script to trigger your flow. Are you also supplying it with parameters?

If so... then have an extra parameter to designate the special 29th run. And have the logic to disregard the run should it be a run on a Tuesday.

Of course, if you are using the built in job scheduler within DataStage... that would make it harder.
Post Reply