Passing Parameter - Command Line

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
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Passing Parameter - Command Line

Post by DeepakCorning »

I m trying to run a job from command line using dsjob.

The job requires two parameters as input and the type of those two parameters are Path and List. Is there a way to pass values to these two in command line ? Right now my command looks like --

dsjob -server <server_name> -run -param 'param1' = 'value1' -param 'param2' = 'value2' -jobstatus <Project_name> <job_name>

I am getting the error - Invalid Arguement when I try to run the above command.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No spaces around the equal signs, please.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

Thank you !! It worked , Had to remove the inverted commas as well (i think the reason for that was becoz the parameter types were not strings. Not quite sure , but now its working.
Post Reply