dsjob returns -9999

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
avenki77
Participant
Posts: 25
Joined: Wed Jul 07, 2004 2:55 pm

dsjob returns -9999

Post 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
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

What are the values of the shell variables?
Mamu Kim
avenki77
Participant
Posts: 25
Joined: Wed Jul 07, 2004 2:55 pm

Post 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
Post Reply