Job parameters

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
vinsashi
Participant
Posts: 150
Joined: Mon Aug 20, 2007 4:52 am
Location: singapore

Job parameters

Post by vinsashi »

Hi,
I have delcared some jobparameters for jobs.
at the time running i have to give values for that parameters

Code: Select all

stgdbuserid
stgdbpassword
for example above two are parameters.but i need to give values for that from one text file.for that i wil get one text file(in that the values are availble for job parameters).when i run the job that should take parameters fro that file.Please Help me

Thanks
v..
kamalshil
Participant
Posts: 179
Joined: Mon Jun 23, 2008 1:19 am

Post by kamalshil »

Hi,
For this you can use this technique.
if you can use sequence
use flow like this:

Code: Select all

Command Activity->UserVariable activity->Job Activity
1. Command activity : Read your input file in this activity.
2. UserVariable : read the output of previous activity and store it in two variables.
3. Job activity : pass the variable activity variables to your job.

Hope this might help you.
Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly, parameter sets with value files should do the trick.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Beware, however, that it is not possible to assign a value to a parameter in a Parameter Set from a sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply