Page 1 of 1

parameter

Posted: Thu Jun 14, 2007 9:13 am
by reddy12
I am trying to run the job from command line.if i gave like

dsjob -run -jobstatus projectname jobname it is working but it is taking default parameters.

I want to pass different parameters from command line.there are four parameters.the parameters userid,password,database,path.

How can i pass parameters from command line.
Please give me correct syntax and one example.

Your response would be appreciated.

Posted: Thu Jun 14, 2007 9:15 am
by DSguru2B
Read the Server Job Developer Guide, specifically Command Line Interface. It will give you the exact syntax.

Posted: Thu Jun 14, 2007 9:43 am
by reddy12
Thanks for your quick response
I checked in server guide i did not find Command Line Interface . can you please give where can i find this.Or give me answer if possible.


DSguru2B wrote:Read the Server Job Developer Guide, specifically Command Line Interface. It will give you the exact syntax.

Posted: Thu Jun 14, 2007 1:44 pm
by DSguru2B
Do a search in the pdf file.
The short example to pass parameters is

Code: Select all

dsjob -run -jobstatus -param Param1=Param1_value -param Param2=Param2_value projectname jobname

Posted: Thu Jun 14, 2007 1:56 pm
by gateleys
Just out of curiousity.... why do you want to run the jobs via command line? Why not a script that contains the dsjob -run command, which also makes use of a parameter file? Or, more simply, why not run using a director?

gateleys

Posted: Mon Jun 25, 2007 12:57 am
by abc123
gateleys, how would you call dsjob with a parameter file? Can you give me an example?

Posted: Mon Jun 25, 2007 6:00 am
by chulett
Perhaps something like this would help.