when I run job from command line using the scipt given below I am getting "Invalid arguments:dsjob -run" error...
I took the piece of code which assigns the parameters from parameter file from one of the post here...
It looks like thats where I am having problem.
This is the shell I am executing...say(runjob.sh)
#!/usr/bin/ksh
PROJECT=$1
shift
DSJOB=$1
shift
SET_PARAMS="$*"
cd $DSHOME
. ./dsenv
dsjob -run ${SET_PARAMS} $PROJECT $DSJOB
return_val=$?
if test $return_val -eq 0
then
echo "success"
else
echo "failure"
fi
exit $return_val
My parameter file looks like this...
-param prm_one=somevalue
I execute it like this...
runjob.sh Project_Name Job_Name ParameterFile_Name
Error is...
Invalid arguments:dsjob -run
any input is appreciated...
[/code]
Code: Select all