Job Parameters

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
lstacks
Participant
Posts: 9
Joined: Thu Jun 09, 2005 6:15 am

Job Parameters

Post by lstacks »

I have create a fairly simple job that contains a Parameter that identifies the path if of the input file. I would like to create a batch process to run this job for 50 different parameter inputs. Any suggestions?
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
You can:
1. write some sequenc job logic with start/end loop activity.
2. write a job control with a loop.

How do you plan to get the list of parameter values?

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
lstacks
Participant
Posts: 9
Joined: Thu Jun 09, 2005 6:15 am

Post by lstacks »

I am going to create an array with all the values.

Is there something specific I need to do to release/reset the job between each run?

Are there any of the defaults which are loaded when creating a batch that would allow the process to run quicker?

Thanks
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Usually after finishing with a job you perform the DSDetachJob() routine (read about it in the manuals)
On windows machines I usually add a sleep 3 or 5 for stability reasons especially if I run many jobs in a loop one after the other in parallel (then again it has been a while since last time I worked on a windows DS server so people are welcome to correct me if this is no longer needed)

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply