Run the job using dsjob: dsjob: not found

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
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Run the job using dsjob: dsjob: not found

Post 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?
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

Server is unix
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post 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
Nag
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Yes i agree arndw ...I assumed that DSHOME is set which i should not have ...
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply