How do we pass parameter values to a job at run time?
(not manually keying the values, no defaults)
passing parameter values
Moderators: chulett, rschirm, roy
Hi djoni.
Well, first, you need to define the parameter (name and type) in the job properties.
Second, you can pass the value of the parameter with the dsjob utility (at the prompt).
dsjob -run -param param_name=param_value -param param_name=param_value... -wait project_name sequencer
hope it helps
Well, first, you need to define the parameter (name and type) in the job properties.
Second, you can pass the value of the parameter with the dsjob utility (at the prompt).
dsjob -run -param param_name=param_value -param param_name=param_value... -wait project_name sequencer
hope it helps
The Brute
-
- Participant
- Posts: 437
- Joined: Fri Oct 21, 2005 10:00 pm
How would you generate the parameters? Your issue seems unclear. If you could explain in more detail with something like, "I have a job that will get its paraameters from a previous job, how could I do this?" I don't think I can understand how to help you until you tell us how you would determine the parameters to pass to this job in the first place.
Keith Williams
keith@peacefieldinc.com
keith@peacefieldinc.com
This is great news!kumar_s wrote:You can maintain a parameter file which hold all the necessary dynamic parameter. And it can be passed to -param in dsjobs. You can refresh the parameter file for every run as you wish.
But, what will be the content of the parameter file? parameter name and value pairs? Format?
And, how willl the dsjob command look for the file and the specific parameter? I can't see them in the dsjob command options
djoni
I would really appreciate it if you could email me a sample script darmawd@thedominion.cakumar_s wrote:No, there isnt any inbuilt parameter file for dsjob. Instead you need to create of your own logic and need to prepare code(Shell script) to read the parameter file and pass the values to the dsjob commands.
Many thanks, djoni