Page 1 of 1

passing parameter thru dsjob

Posted: Thu Mar 22, 2007 3:29 pm
by padmaguntur
I am trying to pass parameter filename thru dsjob command from unix shell script. dsjob command I wrote is
dsjob -run -param paramname="paramvalue" <projectname> <jobname>

it is giving the error -3 getting information for parameter
status code = -3 DSJE_BADPARAM

Please help.

Posted: Thu Mar 22, 2007 3:31 pm
by chulett
Welcome aboard! :D

That error means the parameter name you've supplied does not exist in the job. Make sure you've spelled it correctly - case and all. And you've got the right job!

Posted: Thu Mar 22, 2007 3:41 pm
by padmaguntur
I checked the name is correct. for the file in the sequential stage I am passing the parameter whose name is filename, should I represent there as #filename#. should I also set up parameter in the job properties with the same name?

Posted: Thu Mar 22, 2007 4:43 pm
by chulett
The parameter name you passed on the command line as paramname in your example cannot be correct or it would not have given you that error.

Whatever name you've assigned to the parameter in the job - name, not prompt or default value - is what you should be using here. And no, the command line will not recognize nor need the '#' signs.

Posted: Thu Mar 22, 2007 7:10 pm
by ray.wurlod
Parameter names are case sensitive. You won't get DSJE.BADPARAM (-3) if you spelled and cased it correctly. Check again.

You probably don't need the value in quotes, either.