Page 1 of 1
Run the job using dsjob: dsjob: not found
Posted: Mon Jun 08, 2009 8:16 am
by svga
Hi,
Im running the below command where the DataStage has installed.
dsjob -run <project name> <job name>.
I am getting the error message Like: dsjob: not found
Can any one help me to resolve this issue?
Posted: Mon Jun 08, 2009 8:22 am
by svga
Server is unix
Posted: Mon Jun 08, 2009 8:24 am
by ArndW
That is a UNIX error, the path to the "dsjob" command is not in your environment's PATH. Either add it, or change your current working directory to that directory.
Posted: Mon Jun 08, 2009 8:24 am
by nagarjuna
In order to get dsjob command to work , you need to execute the dsenv file .This file is present in DSEngine directory .
cd $DSHOME
. ./dsenv
cd bin
dsjob
Posted: Mon Jun 08, 2009 8:29 am
by ArndW
nagarjuna - remember that $DSHOME is not necessarily set in most environments; that is why I didn't specify that. The more reliable method is to use something like "cd `cat /.dshome`"; also, I think that the dsenv might not need to be sourced in order to execute dsrun
Posted: Mon Jun 08, 2009 8:35 am
by nagarjuna
Yes i agree arndw ...I assumed that DSHOME is set which i should not have ...
Posted: Mon Jun 08, 2009 9:52 am
by chulett
Still, this is a simple pathing problem. Any command has to be either in the $PATH to be found or fully pathed or an appropriate relative path needs to be used.