Page 1 of 1

$DSHOME/bin not part of dsenv file

Posted: Thu Apr 19, 2012 4:25 am
by thebird
Hi,

We have just moved over to version 8.5 and I see that $DSHOME/bin
has not been included in the dsenv file.
Typically I have seen the $DSHOME/bin always included as part of the PATH environment variable.

How this was noticed was - a job sequence which was designed to call dsjob in a Routine Activity aborted when it was run in 8.5. The arguement only had dsjob -run ..... instead of $DSHOME/bin/dsjob -run....

What I am interested in knowing is if there is any other impact of not having the $DSHOME/bin as part of the PATH variable - apart from the issue related to the dsjob command (which i can consider as a code issue probably). Also I was under the impression that by default the dsenv file would have $DSHOME/bin as part of $PATH - but looks like that is not the case.

Thanks!

Posted: Thu Apr 19, 2012 5:45 am
by chulett
You've seen what I imagine the only impact would be - anything that uses a relative path to any of the contents of the bin directory will be prone to failure. What all those might be I can't say and don't have access to anything to check. If you've had that line there before go ahead and simply add it back in as it certainly can't hurt anything.

Is it elsewhere now? Someone's .profile perhaps?

Posted: Thu Apr 19, 2012 4:36 pm
by ray.wurlod
By default $DSHOME/bin is not included in PATH in dsenv. DataStage projects know where it is (because they know where $DSHOME is).

Lots of sites do include it so that they can source dsenv and then execute commands from the command line (explaining your experience), but it's not necessary for DataStage processes.

Posted: Thu Apr 19, 2012 4:58 pm
by chulett
Well, there you go. :wink:

Posted: Thu Apr 19, 2012 7:19 pm
by qt_ky
In the default dsenv file:

DSHOME is set and used in the library path but not in PATH.

In fact, PATH is not in the file at all.