DataStage scheduling

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
EJRoufs
Participant
Posts: 73
Joined: Tue Aug 19, 2003 2:12 pm
Location: USA

DataStage scheduling

Post by EJRoufs »

Windows Server, version 7.1.

We use the DataStage Scheduler regularly, but we usually schedule jobs to run every Saturday, every 1st of the month, stuff like that. It works great for that. However, we have some jobs that we need to schedule once a month, but not always on the same day. Is there a way to schedule on a certain date each month? Is it any different in version 7.5, because we'll be upgrading to that soon?
Eric
ucf007
Charter Member
Charter Member
Posts: 18
Joined: Fri Feb 27, 2004 2:25 pm

Post by ucf007 »

On the NT Platform, you can use AT commands ( on unix, crontab) ...
to schedule jobs instead of the DS schdluer.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The scheduler in DataStage is just a front-end for the actual tool. The default scheduler on UNIX systems is cron, and that is what you are likely to be using.

If you want to do things not available in the GUI you can always edit your crontab manually, but you can specify a job to run every month on a given day; select the run to "every" and remove the DOW entry and just click on the day-of-month.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Surely what you're already doing ("every 1st") covers what you've asked?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
EJRoufs
Participant
Posts: 73
Joined: Tue Aug 19, 2003 2:12 pm
Location: USA

Post by EJRoufs »

ray.wurlod wrote:Surely what you're already doing ("every 1st") covers what you've asked?
For the jobs that we run on every "1st", yes. We have jobs that run on a "set schedule", but not one that we can schedule using "every 1st" though. For example, we might have a job that runs on "work day -4" for us each month. That would be December 27th, January 26th, February 23rd, March 28th, etc. So, we KNOW the exact dates that we need to run on, but it is not a date that we can currently schedule using the DataStage Scheduler in version 7.1.
Eric
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That is true. But you could schedule it for the 28th then use a routine to edit the AT queue entry appropriately.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shabari82
Participant
Posts: 3
Joined: Wed Sep 14, 2005 3:58 am
Contact:

Post by shabari82 »

Hi EJRoufs,

You can achieve this scheduling scenario like this in unix.

1) Use a parameter file which stores the date on which the job should be scheduled.

2) Write a shell script to pick the date from the parameter file and run the DataStage Job on that particular day.

3) First you need to schedule the Shell script daily. It check the parameter file daily for date. Wirte the logic in such a way that if the parameter file is empty dont do anything else if any valid date is present in the parameter file, start scheduling your datastage job using another script.


This should work. I am giving you an idea but I havent tried. pls do this and tell me whether this works fine or not.

Thanks,
Shab
shabari82
Participant
Posts: 3
Joined: Wed Sep 14, 2005 3:58 am
Contact:

Schedule DataStage Job Monthly but on different Days.

Post by shabari82 »

Hi EJRoufs,

You can achieve this scheduling scenario like this in unix.

1) Use a parameter file which stores the date on which the job should be scheduled.

2) Write a shell script to pick the date from the parameter file and run the DataStage Job on that particular day.

3) First you need to schedule the Shell script daily. It check the parameter file daily for date. Wirte the logic in such a way that if the parameter file is empty dont do anything else if any valid date is present in the parameter file, start scheduling your datastage job using another script.


This should work. I am giving you an idea but I havent tried. pls do this and tell me whether this works fine or not.

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

Post by ray.wurlod »

Did you notice that the original poster is on Windows? :oops:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shabari82
Participant
Posts: 3
Joined: Wed Sep 14, 2005 3:58 am
Contact:

DataStage Scheduling

Post by shabari82 »

ray.wurlod wrote:Did you notice that the original poster is on Windows? :oops:

Then write a dos batch script on windows NT or through datastage basic routines.....or Job control routines.....I said an example on Unix :idea: .....But that doesnt mean we cant do in Windows NT...using datastage api.... :o
Post Reply