ginrkf
1
I have a parameter A
its value is given below
A= 'Hi Hello'
When I am trying to use this parameter in my script to call the job,its giving me invalid parameters due to space between Hi & Hello
-param A=$A
param A=Hi Hello.
in above since there space after hi it will give invalid parameter
Same issue when using double quotes ("Hi Hello")?
ginrkf
3
Yes I use double quotes and try..its not working
Scott
4
What shell are you using, which OS? Exactly what is the error?
There's also a space after = in A= 'Hi Hello'
ginrkf
5
Sorry its typo error.There is no space after =
Scott
6
Let's see the script. Without it I can't see how we can help.
ginrkf
7
set -vx
set -a
Script=$0
TODAY_DATE=`date '+%Y%m%d'`
export A="Hi Hello"
export B=Test
dsjob -run -wait \
-warn 5000 \
-param A=$A \
-param B=$B \
-jobstatus $ProjecName $JobName 2>> ${LFILE}
set +vx
set +a
Scott
8
Maybe you just need to quote all the parameters to "dsjob"?
... -param="$A" ... -param="$B" ... -jobstatus "$ProjectName" ... etc.
ginrkf
9
we have tried like that also..still its not working
Scott
10
Perhaps dsjob can't handle parameters with spaces?