Page 1 of 1

dsjob returns -9999

Posted: Mon May 16, 2005 4:09 pm
by avenki77
I am having the following two consecutives in my shell script. The second command which is dsjob says:
Status code = -9999

echo dsjob -run -jobstatus ${DATASTAGE_PARAM} ${DSPROJ} ${DATASTAGE_JOB}

dsjob -run -jobstatus ${DATASTAGE_PARAM} "${DSPROJ}" "${DATASTAGE_JOB}"

But the first echo prints the entire command correctly and if I just copy it and put it manually in the unix prompt, it runs fine.

Can somebody help me in this regard?

Thanks in advance
Venkatesh

Posted: Mon May 16, 2005 8:12 pm
by kduke
What are the values of the shell variables?

Posted: Mon May 16, 2005 8:55 pm
by avenki77
they are proper strings. for example,

dsjob -run -jobstatus ${DATASTAGE_PARAM} "${DSPROJ}" "${DATASTAGE_JOB}"

becomes

dsjob -run -jobstatus -param parm1='abc' -param parm2='abc def' abcproj abc