Hi Everyone,
I want to list out the datastage projects in a unix server and the jobs in each project. So I am using the below command:
Listing Out the Projects = "dsjob -lprojects"
Listing Out the jobs = "dsjob -ljobs project"
But, I got the error like "dsjob: command not found". And I have verified the operating system as well. It is SunOS.
Please help!!
"dsjob: command not found" on Unix Server
Moderators: chulett, rschirm, roy
"dsjob: command not found" on Unix Server
Kiran Kumar
...ALL IS WELL...
...ALL IS WELL...
This means that the "dsjob" command is not in your session's PATH.
Most likely you haven't sourced your dsenv file.
If that doesn't do the trick, check your PATH environment value ("env | grep PATH") and it should contain an entry to {your install directory}/Server/DSEngine/bin
As a last resort, attach to root, do a "find . -name dsjob" and then use that path on your command line.
Most likely you haven't sourced your dsenv file.
Code: Select all
cd `cat /.dshome`
. .dsenv
As a last resort, attach to root, do a "find . -name dsjob" and then use that path on your command line.
Last edited by ArndW on Thu Sep 03, 2015 4:21 am, edited 1 time in total.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Thanks ArndW!!
I have tried what you suggested. But no luck. Please find below:
First Point : (No output after executing the command . ./dsenv)
Second Point : (I did not find "{your install directory}/Server/DSEngine/bin/dsjob" from the below output)
Third Point : At root location, I have executed the command "find . -name dsjob" but it stuck @last line which I have attached in code. Please find from below.
Also, Please clarify what is Session's PATH?
Kindly help me. Thanks!!
I have tried what you suggested. But no luck. Please find below:
First Point : (No output after executing the command . ./dsenv)
Code: Select all
$ cd `cat /.dshome`
$ pwd
$ /opt/IBM/InformationServer/Server/DSEngine
$ . ./dsenv
$
Code: Select all
$ env | grep PATH
LD_LIBRARY_PATH=/opt/IBM/InformationServer/ASBNode/apps/jre/lib/sparcv9/server:/opt/IBM/InformationServer/ASBNode/apps/jre/lib/sparcv9:/opt/IBM/InformationServer/ASBNode/lib/cpp:/opt/IBM/InformationServer/ASBNode/apps/proxy/cpp/sunos-all-sparc_64:/opt/IBM/InformationServer/Server/branded_odbc/lib:/opt/IBM/InformationServer/Server/DSComponents/lib:/opt/IBM/InformationServer/Server/DSComponents/bin:/opt/IBM/InformationServer/Server/DSEngine/lib:/opt/IBM/InformationServer/Server/DSEngine/uvdlls:/opt/IBM/InformationServer/Server/PXEngine/lib:/oracle/client/product/11.2.0.2/bin:/oracle/client/product/11.2.0.2/lib:/oracle/client/product/11.2.0.2/rdbms/lib:/opt/IBM/InformationServer/Server/Projects/EDH/RT_BP86.O:/opt/IBM/InformationServer/Server/DSParallel:/opt/IBM/InformationServer/Server/PXEngine/user_lib:/opt/IBM/InformationServer/Server/Projects/EDH/buildop:/usr/lib:/lib:/opt/IBM/InformationServer/ASBNode/apps/jre/lib/sparcv9/server:/opt/IBM/InformationServer/ASBNode/apps/jre/lib/sparcv9:/opt/IBM/InformationServer/ASBNode/lib/cpp:/opt/IBM/InformationServer/ASBNode/apps/proxy/cpp/sunos-all-sparc_64:/opt/IBM/InformationServer/Server/branded_odbc/lib:/opt/IBM/InformationServer/Server/DSComponents/lib:/opt/IBM/InformationServer/Server/DSComponents/bin:/opt/IBM/InformationServer/Server/DSEngine/lib:/opt/IBM/InformationServer/Server/DSEngine/uvdlls:/opt/IBM/InformationServer/Server/PXEngine/lib:/oracle/client/product/11.2.0.2/bin:/opt/mqm/lib64:/opt/mqm/bin
PATH=/usr/bin:/bin:/oracle/client/product/11.2.0.2/bin:/opt/mqm/bin
Code: Select all
find: cannot read dir ./usr/lib/scn/lib: Permission denied
find: cannot read dir ./usr/lib/scn/bin: Permission denied
find: cannot read dir ./usr/lib/cc-cfw: Permission denied
find: cannot read dir ./usr/local/var/lib/sudo: Permission denied
find: cannot read dir ./usr/aset: Permission denied
Kindly help me. Thanks!!
Kiran Kumar
...ALL IS WELL...
...ALL IS WELL...
The "find" result is odd, but perhaps on your OS you need to issue a "-print" option to output what it finds.
Regardless, the location is "/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob" on your machine.
You can either specify the explicit path, or execute
and then "dsjob" will be found and executed.
Regardless, the location is "/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob" on your machine.
You can either specify the explicit path, or execute
Code: Select all
export PATH=$PATH:/opt/IBM/InformationServer/Server/DSEngine/bin
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>