passing parameter thru dsjob

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
padmaguntur
Participant
Posts: 2
Joined: Thu Mar 22, 2007 2:40 pm

passing parameter thru dsjob

Post 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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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!
Last edited by chulett on Thu Mar 22, 2007 4:44 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
padmaguntur
Participant
Posts: 2
Joined: Thu Mar 22, 2007 2:40 pm

Post 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?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

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

Post 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.
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