update Parameter set for every run

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
kpsita
Participant
Posts: 99
Joined: Tue Jul 21, 2009 11:43 pm

update Parameter set for every run

Post by kpsita »

Hi,

I have a parameter set with one value

Parameterset = Maxdate

when I start my sequence I need to update this Maxdate value with the maximum update date value from a table.How can I do this. Is it possible to do it using a routine or is there any other alternate to get the parameter value changed for daily run.I will not be able to change it manually because I have to do the same for more than 50 tables.Any help is appreciated.

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

Post by chulett »

It's a normal flat file so you have a number of options on how to change it, especially if it is the only record in the file. You could use a job, do something in a routine, even a shell script.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rohithmuthyala
Participant
Posts: 57
Joined: Wed Oct 21, 2009 4:46 am
Location: India

Post by rohithmuthyala »

Hi,

You can maintain a separate flat file, which will calculate the maximum value and stores in it before running your job, your sequencer can read the corresponding value from the above file created.
Rohith
Post Reply