Problems with Job Parameters and Sequence Job
Posted: Mon Sep 12, 2005 4:23 am
I'm having problems with passing a string parameter from a job sequence into a parallel job.
The value I want to pass is obtained from a file in the AIX file system, so I'm trying to use an Execute Command activity, whose output is the required parameter value.
So far so good, the Execute Command Activity works fine and the output is as expected (in fact, a string representation of a date: 12.09.2005)
The problem comes when I try to add a Job Activity and to populate the job parameter TESTDATE with the expression Execute_Command_1.$CommandOutput.
I get the error:
CallParamTest..JobControl (@Job_Activity_0): Controller problem: Error calling DSSetParam(TESTDATE), code=-4
[ParamValue/Limitvalue is not appropriate]
I do have a workaround, which is to replace the simple expression Execute_Command_1.$CommandOutput with the complex one OConv(IConv(Execute_Command_1.$CommandOutput,"D4.DMY[2,2,4]"),"D.DMY[2,2,4]")
But that shouldn't do anything except waste a few CPU cycles, should it? It's just taking my string input, converting it to an internal representation and then back to a string in the same format, isn't it? Plus, it wouldn't work if my string parameter didn't happen to be a date.
Any ideas?
The value I want to pass is obtained from a file in the AIX file system, so I'm trying to use an Execute Command activity, whose output is the required parameter value.
So far so good, the Execute Command Activity works fine and the output is as expected (in fact, a string representation of a date: 12.09.2005)
The problem comes when I try to add a Job Activity and to populate the job parameter TESTDATE with the expression Execute_Command_1.$CommandOutput.
I get the error:
CallParamTest..JobControl (@Job_Activity_0): Controller problem: Error calling DSSetParam(TESTDATE), code=-4
[ParamValue/Limitvalue is not appropriate]
I do have a workaround, which is to replace the simple expression Execute_Command_1.$CommandOutput with the complex one OConv(IConv(Execute_Command_1.$CommandOutput,"D4.DMY[2,2,4]"),"D.DMY[2,2,4]")
But that shouldn't do anything except waste a few CPU cycles, should it? It's just taking my string input, converting it to an internal representation and then back to a string in the same format, isn't it? Plus, it wouldn't work if my string parameter didn't happen to be a date.
Any ideas?