DSSetParam
Posted: Thu Feb 27, 2003 6:34 am
Hi !
I have code created by a job sequencer which I have copy in an other job control to add some code for retrieving parameters for the jobs runned by this job control.
I changed my code for DSSetParam like this:
err$code = DSSetParam(h$5, ParamName, ParamValue)
(where ParamName is the variable which contains the value param1)
instead of
err$code = DSSetParam(h$5, "param1", ParamValue)
The result I have when running the job control is:
*HARDCODING
* err$code = DSSetParam(h$5, "param1", ParamValue)
*WORKS
*BUT
err$code = DSSetParam(h$5, ParamName, ParamValue)
*DOESN'T WORK
with the following error:
TstJctlGetJobParamAndRunJob..JobControl (@TstParamJob): Controller problem: Error calling DSSetParam(param), code=-3
[ParamName does not reference a known parameter of the job]
What should I do for DS to process ParamName as a variable (it seems it is processing it as a string) in the job control ?
Thanks
I have code created by a job sequencer which I have copy in an other job control to add some code for retrieving parameters for the jobs runned by this job control.
I changed my code for DSSetParam like this:
err$code = DSSetParam(h$5, ParamName, ParamValue)
(where ParamName is the variable which contains the value param1)
instead of
err$code = DSSetParam(h$5, "param1", ParamValue)
The result I have when running the job control is:
*HARDCODING
* err$code = DSSetParam(h$5, "param1", ParamValue)
*WORKS
*BUT
err$code = DSSetParam(h$5, ParamName, ParamValue)
*DOESN'T WORK
with the following error:
TstJctlGetJobParamAndRunJob..JobControl (@TstParamJob): Controller problem: Error calling DSSetParam(param), code=-3
[ParamName does not reference a known parameter of the job]
What should I do for DS to process ParamName as a variable (it seems it is processing it as a string) in the job control ?
Thanks