Assigning the output of DSExecute command to job Parameter
Posted: Tue Jan 17, 2006 7:25 am
Call DSExecute("NT","D:\cygwin\bin\bash.exe --login -c '/cygdrive/d/Ram/script/CheckFile.sh NXRP_CBD'", Output, SystemReturnCode)
The script returns the filename which starts with 'NXRP_CBD'
How to assign the 'Output' to the job parameter.
I tried this code. But this did not work
ErrCode = DSSetParam(hJob1, "SOURCE_FILE_NAME",Output)
But when i printed the Output to log it shows the filename correctly. but it did not set the parameter
When i tried the same thing in a job sequence, the following error message came in the log
Ctrl_Job..JobControl (@Execute_Command_4): Executed: D:\cygwin\bin\bash.exe --login -c '/cygdrive/d/Ram/script/CheckFile.sh NXRP_CBD'
Reply=0
Output from command ====>
NXRP_CBD_AVL_DTL.txt
Ctrl_Job..JobControl (@Job_Activity_1): Controller problem: Error calling DSSetParam($SOURCE_FILE_NAME), code=-4
[ParamValue/Limitvalue is not appropriate]
Please help me solve this
The script returns the filename which starts with 'NXRP_CBD'
How to assign the 'Output' to the job parameter.
I tried this code. But this did not work
ErrCode = DSSetParam(hJob1, "SOURCE_FILE_NAME",Output)
But when i printed the Output to log it shows the filename correctly. but it did not set the parameter
When i tried the same thing in a job sequence, the following error message came in the log
Ctrl_Job..JobControl (@Execute_Command_4): Executed: D:\cygwin\bin\bash.exe --login -c '/cygdrive/d/Ram/script/CheckFile.sh NXRP_CBD'
Reply=0
Output from command ====>
NXRP_CBD_AVL_DTL.txt
Ctrl_Job..JobControl (@Job_Activity_1): Controller problem: Error calling DSSetParam($SOURCE_FILE_NAME), code=-4
[ParamValue/Limitvalue is not appropriate]
Please help me solve this