Pass the value to Parameter set from script
Moderators: chulett, rschirm, roy
Pass the value to Parameter set from script
Hi
I would like to pass the one paramater value to Paramater Set from command line.
I hope using -ds-job command we can pass -param for normal parameter,
But I need to pass only one value to Parameter set.
Thanks
Man
I would like to pass the one paramater value to Paramater Set from command line.
I hope using -ds-job command we can pass -param for normal parameter,
But I need to pass only one value to Parameter set.
Thanks
Man
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Use "dot notation".
Code: Select all
-param parametersetname.parametername=value
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks Ray.
When I test following command but still I am getting error?
psValue="-param project_param_set.data_path=/home/aaa/dir/"
$DSHOME/bin/dsjob -run -mode NORMAL -param $psValue Test_project seq_test
Invalid arguments: dsjob -run
[-mode <NORMAL | RESET | VALIDATE>]
[-paramfile <filename>]
[-param <name>=<value>]
[-warn <n>]
[-rows <n>]
[-wait]
[-opmetadata <TRUE | FALSE>]
[-disableprjhandler]
[-disablejobhandler]
[-jobstatus]
[-userstatus]
[-local]
[-useid]
<project> <job|jobid>
Status code = -9999 DSJE_DSJOB_ERROR
When I test following command but still I am getting error?
psValue="-param project_param_set.data_path=/home/aaa/dir/"
$DSHOME/bin/dsjob -run -mode NORMAL -param $psValue Test_project seq_test
Invalid arguments: dsjob -run
[-mode <NORMAL | RESET | VALIDATE>]
[-paramfile <filename>]
[-param <name>=<value>]
[-warn <n>]
[-rows <n>]
[-wait]
[-opmetadata <TRUE | FALSE>]
[-disableprjhandler]
[-disablejobhandler]
[-jobstatus]
[-userstatus]
[-local]
[-useid]
<project> <job|jobid>
Status code = -9999 DSJE_DSJOB_ERROR
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What Craig is intimating is that you have a -param in the dsjob command line and another in the value of the psValue shell variable. The dsjob command objects to what becomes an empty -param argument. Think about what the expanded command would look like.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks Ray & Craig,
That is my mistake.
psValue="project_param_set.data_path=/home/aaa/dir/"
$DSHOME/bin/dsjob -run -mode NORMAL -param $psValue Test_project seq_test
After I modified but still I am getting same error.
Error -3 getting information for parameter 'project_param_set.data_path'
Status code = -3 DSJE_BADPARAM
I am not sure what i missed here.
Thanks
Man
That is my mistake.
psValue="project_param_set.data_path=/home/aaa/dir/"
$DSHOME/bin/dsjob -run -mode NORMAL -param $psValue Test_project seq_test
After I modified but still I am getting same error.
Error -3 getting information for parameter 'project_param_set.data_path'
Status code = -3 DSJE_BADPARAM
I am not sure what i missed here.
Thanks
Man
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
This is a different error than the syntax error you had before. DSJE_BADPARAM means one of three things:
- there is no parameter set called project_param_set in the project
there is no parameter called data_path in the parameter set
the parameter set has not been loaded into the job design
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.