Generic Parameter File

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
mc_harsha
Premium Member
Premium Member
Posts: 32
Joined: Mon Mar 06, 2006 5:44 am
Location: bangalore

Generic Parameter File

Post by mc_harsha »

All,

We have around 50 jobs, where we are using one generic parameter file.

Generic parameter file contains values for the 50 variables.

We need to use these values in column derivation of our jobs.

Not all of the job will use all of the variables.

So, My question is Best method to use the generic parameter file.

- Read the variable in Shell script and pass it through job parameter in DS Job command
-Read the variable using look up with dummy look up key
-Read it through routines..

Can you guys provide me best solution with respect to implementation as well as maintainance?
harshakumar mc
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use dsjob first to get a list of all parameters defined in the job. Pull any matching parameter names from your 'generic file' and only pass those to the job when you launch it.

:? Or are we not talking about Job Parameters here? If not, please be more clear about the nature and usage of these 'variables'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

We do exactly this. We have parameter values in 6 types of files. So if you have a parameter jpTargetUser then it can get set in these files. Assuming the job name is JobA and the instance id is Instance1.

1. JobA.Instance1_#jpTargetUser#.prm
2. JobA.Instance1.prm
3. JobA_#jpTargetUser#.prm
4. JobA.prm
5. GlobalParams_jpTargetUser.prm
6. GlobalParams.prm

Here is the line you need in one of these files.

jpTargetUser=etluser

You need to have comment lines to keep track of these.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

We use a scheduler like Control M called Zena. This helps implement faster in Zena. We have a script which can create the prm files by calling dsjob like Craig suggested.
Mamu Kim
Post Reply