Datastage job need to run hourly schedule

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
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Datastage job need to run hourly schedule

Post by cnu »

Hi:

I want to run the datastage job hourly basis from 9AM to 6PM from Monday to friday.Source is the Pipe separated flat file and source is the Saolserver database.

How can i approach this requirement,please let me know.

Thanks
cnu
Last edited by cnu on Sat Jul 19, 2008 9:10 am, edited 2 times in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

'Add to Schedule' once per hour during those times. Or build job control that runs the job in a loop and sleeps until the hour arrives, exiting after the 6PM run.
-craig

"You can never have too many knives" -- Logan Nine Fingers
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Post by cnu »

Hi:

Please let me know the approach for scheduling job.
Through autosys or datastage director,what is the best approach or is there any way to achieve the requirement.

Thanks
Sreeni
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The 'Add to Schedule' reference was for DataStage Director if you are allowed to use it. Or just do the same for AutoSys, schedule the job to run once per hour during your window.
-craig

"You can never have too many knives" -- Logan Nine Fingers
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Re: Datastage job need to run hourly schedule

Post by cnu »

Hi :

Thanks Craig Hulett !!

From director how can i specify the time 9AM to 6PM from Monday to friday.

Please can you let me know the steps.

Thanks
cnu
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Explicity enter one start each at 9am, 10am, 11am, etc.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

From Director:

1. Select job
2. Add to Schedule (right-click or clock icon)
3. Select the 'Every' radio button
4. Make sure Monday thru Friday are highlighted
5. Set time to 9:00 AM
6. Click OK
7. Set parameters
8. Click Schedule

Repeat for 10AM, 11AM, etc etc up to 6PM.
-craig

"You can never have too many knives" -- Logan Nine Fingers
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Re: Datastage job need to run hourly schedule

Post by cnu »

Craig Hulett :

Thank you so much.

Thanks
cnu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

np. Just make sure you recognize the potential problem with this approach - can you guarantee your job will always complete in less than an hour? If not, then any overlapping schedule will fail to start. Also note that, unless we are talking about a restartable sequence job here, that a failed job will need to be manually reset before it can be run again.

If your post is now resolved, please mark it that way! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Re: Datastage job need to run hourly schedule

Post by cnu »

Hi Craig Hulett :

For the scheduling Job from the director cron and cron tab is required right?

Thanks
cnu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You marked your post as 'Windows' meaning a Windows server installation. If indeed you are on UNIX, then yes - your scheduling user will need access to both "cron" and "at" (assuming both repeating and one-time schedules are needed) and you'll need to talk to a SysAdmin to arrange inclusion in both "allow" files.
-craig

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