Page 1 of 1

Parameters

Posted: Thu Apr 26, 2007 11:38 am
by laknar
how can i give parameters i.e Third Party tools

or is there any command for giving parameters from outside the job

if possible Please explain me how it works

Re: Parameters

Posted: Thu Apr 26, 2007 12:53 pm
by sud
laknar wrote:how can i give parameters i.e Third Party tools

or is there any command for giving parameters from outside the job

if possible Please explain me how it works
You mean while running a job from command line? Please check out the dsjob command ... search the forum ... this has been covered many times.

Posted: Thu Apr 26, 2007 1:05 pm
by laknar
i tried to search but iam not able to find exact solution topic in forum.

please help me regarding this.

Posted: Thu Apr 26, 2007 1:12 pm
by DSguru2B
Search on keywords like 'dsjob -param'

Posted: Thu Apr 26, 2007 1:13 pm
by sud
See, this is a sample command line invocation of a job through script :

Code: Select all

dsjob -run -wait -param RCPT_ID=${RCPT_ID} -param STATUS=${STATUS} -jobstatus myProjectName myJobName
which passes parameters RCPT_ID,STATUS to the job myJobName. Similarly you can pass in any number of parameters. In this example the value being passed is caught from the unix environment variables in place of which you could have read the parameter values from a parameter file and used those.