Default value

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
tatireddi
Participant
Posts: 22
Joined: Sun Oct 22, 2006 11:00 pm

Default value

Post by tatireddi »

Hi,

Can I edit the default values of the job parameters. if so how?
which views to query for viewing the default values?
Regards

Srinivas
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

which tool do you want to use for that?

(a) director
(b) manager
(c) Designer
(d) Administrator
(e) command-line

Each of this tools has another way.
Wolfgang Hürter
Amsterdam
tatireddi
Participant
Posts: 22
Joined: Sun Oct 22, 2006 11:00 pm

Post by tatireddi »

Hi,

I want to use the command line or wants to write a DS Routine to change the default values of the all jobs in the project.
Regards

Srinivas
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Theoreticly it can be done but you have to have a very deep internal knowledge of what you do.

The best way to reach what you want to reach is:

Write sequences or (if you prefer it the unix way) shell scripts for to start the DataStage-Jobs. There you can feed any parameter at runtime which you want.

You should devide parameters in three groups.

Development-Step-Parameters:
that are parameters, which differ with the development-step and which are different in devellopment, test, integration or production for example a DB-User and a DB-Pasword

Run-Step-Parameters:
that are parameters which differ with each run of a job, for example a filename, which has each month a different name because the date is included in the filename.

General Parameters:
that are parameters which remain the same within each job but may differ for special purposes

It is better to nourish every job start with the correct parameters than to change the default values. Default values are helpful for the development process.
Wolfgang Hürter
Amsterdam
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Another option of the 'brute force' variety for a global / mass change of default values is the old 'export / edit / import' techinique. Perform a full export of the job's source then edit the .dsx, doing a search and replace of the values. Lastly reimport and recompile. Not all that elegant, but does work.

You can also get access to Kenneth Bland's website, one of his many free utilities is a batch job that does this.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Best answer is to build some form of 'job control' that negates the need to worry about default values across projects. A central store of some kind where parameter values are automatically assigned at runtime is what is typically implimented.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rodre
Premium Member
Premium Member
Posts: 218
Joined: Wed Mar 01, 2006 1:28 pm
Location: Tennessee

Post by rodre »

You could replace the default parameter values by loading the replacement pamameters from a file via a routine and replacing them before your jobs run....
Regards,
Rodre
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Buy Parameter Navigator and save yourself some heartache.
Mamu Kim
Post Reply