In the past few weeks I had to frequently work on servers where the DataStage environment was not setup to work with the shell. So as a result of this, if you try to run the dsjob command you will get something like this:
$ dsjob
dsjob: error while loading shared libraries: libvmdsapi.so: cannot open shared object file: No such file or directory
Presuming that you have selected the default path names during the installation of your server, the following will setup the environment:
$ export DSHOME=/opt/IBM/InformationServer/Server/DSEngine
$ export PATH=$PATH:$DSHOME/bin:/opt/IBM/InformationServer/Server/PXEngine/bin
$ export APT_CONFIG_FILE=/opt/IBM/InformationServer/Server/Configurations/default.apt
$ . /$DSHOME/dsenv
You could even include the above into the ~/.bashrc file so they are executed automatically.
No comments:
Post a Comment