Page 1 of 1

Running DS job command line with multi value file param set

Posted: Tue Oct 15, 2013 9:17 pm
by mydsworld
I need to run a DS job from command line. The job uses param set with multiple value files. In that case what would be the '-param' argument.

For example - if the param set 'pS1' has value file names pS1_VF1, pS1_VF2, pS1_VF3 so on.

what would be the '-param' arguments in dsjob command.

Thanks.

Posted: Wed Oct 16, 2013 1:23 am
by ArndW
Consider each parameter to be a string, so in your case the parameter value would be "pS1_VF1, pS1_VF2, pS1_VF3". You would now parse this string by comma-separated tokens into the distinct components and process the values.

Or did you have something else mind?

Posted: Wed Oct 16, 2013 3:02 pm
by ray.wurlod
If you want to choose a values file, name just the Parameter Set

Code: Select all

 -param pS1=VF2
If you need to override the default value of a specific parameter in the Parameter Set, use "dot notation".

Code: Select all

-param pS1.ControlFile=/data/Controls/weekend.ctl

Posted: Wed Oct 16, 2013 8:02 pm
by mydsworld
So, can I invoke the DS job for each of the param set value file like this below.

- param pS1 = pS1_VF1
- param pS1 = pS1_VF2
- param pS1 = pS1_VF3
so on

?

Posted: Thu Oct 17, 2013 1:23 am
by ArndW
We are focusing on different methods of "how" to solve a question, but perhaps it might be best to explain "what" you wish to do in your job with these parameters and a better solution might present itself.

Posted: Thu Oct 17, 2013 1:38 am
by ray.wurlod
mydsworld wrote:So, can I invoke the DS job for each of the param set value file like this below.

- param pS1 = pS1_VF1
- param pS1 = pS1_VF2
- param pS1 = pS1_VF3
so on

?
Only one values file name per dsjob command but, otherwise, yes.

Posted: Thu Oct 17, 2013 6:35 am
by chulett
Without the space between the dash and 'param' of course.