dsenv & orchadmin
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 4
- Joined: Tue Feb 13, 2007 2:37 pm
dsenv & orchadmin
I am running the following Unix commands via a DS Routine:
cmd=". /dm/Ascential/DataStage/DSEngine/dsenv; orchadmin ls myfile.ds"
I am getting the following error:
SH: orchadmin: not found
When I run the same command (as the same user) at a Unix command line, everything works fine.
What is different in the DS logon that would cause something like this?
cmd=". /dm/Ascential/DataStage/DSEngine/dsenv; orchadmin ls myfile.ds"
I am getting the following error:
SH: orchadmin: not found
When I run the same command (as the same user) at a Unix command line, everything works fine.
What is different in the DS logon that would cause something like this?
-
- Premium Member
- Posts: 4
- Joined: Tue Feb 13, 2007 2:37 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The orchadmin command is in $APT_ORCHHOME/bin - I'm prepared to bet this is not in your PATH.
To use orchadmin you need APT_CONFIG_FILE set also. This is usually not set in the dsenv script.
To use orchadmin you need APT_CONFIG_FILE set also. This is usually not set in the dsenv script.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 4
- Joined: Tue Feb 13, 2007 2:37 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Execute following commands before you use orchadmin utility
# Set DataStage Environment
$ cd `cat /.dshome`
$ . ./dsenv
# Add PXEngine lib path to LIBPATH variable
$ export LIBPATH=$LIBPATH:$APT_ORCHHOME/lib
# Add PXEngine bin path to PATH variable
$ export PATH=$PATH:$APT_ORCHHOME/bin
# Optional - You may also want to set configuration file if you do not want orchadmin to use the configuration file from the DataSet descriptor file.
$ export APT_CONFIG_FILE=/opt/tools/ds/Ascential/DataStage/
Configurations/<Your Configuration file name>
Now execute the orchadmin command.
$ orchadmin check
NOTE: You will have to give full path of the DataSet descriptor file in the orchadmin command.
Hope this helps....
# Set DataStage Environment
$ cd `cat /.dshome`
$ . ./dsenv
# Add PXEngine lib path to LIBPATH variable
$ export LIBPATH=$LIBPATH:$APT_ORCHHOME/lib
# Add PXEngine bin path to PATH variable
$ export PATH=$PATH:$APT_ORCHHOME/bin
# Optional - You may also want to set configuration file if you do not want orchadmin to use the configuration file from the DataSet descriptor file.
$ export APT_CONFIG_FILE=/opt/tools/ds/Ascential/DataStage/
Configurations/<Your Configuration file name>
Now execute the orchadmin command.
$ orchadmin check
NOTE: You will have to give full path of the DataSet descriptor file in the orchadmin command.
Hope this helps....
Assume everything I say or do is positive
-
- Participant
- Posts: 16
- Joined: Thu Oct 21, 2010 1:40 am
- Location: Indonesia
- Contact:
Glad I found this post. I'm also having problems executing orchadmin and the steps below really solved my problems. All I need to change was the path for APT_CONFIG_FILE to match with the location of my configuration file.
csrazdan wrote:Execute following commands before you use orchadmin utility
# Set DataStage Environment
$ cd `cat /.dshome`
$ . ./dsenv
# Add PXEngine lib path to LIBPATH variable
$ export LIBPATH=$LIBPATH:$APT_ORCHHOME/lib
# Add PXEngine bin path to PATH variable
$ export PATH=$PATH:$APT_ORCHHOME/bin
# Optional - You may also want to set configuration file if you do not want orchadmin to use the configuration file from the DataSet descriptor file.
$ export APT_CONFIG_FILE=/opt/tools/ds/Ascential/DataStage/
Configurations/<Your Configuration file name>
Now execute the orchadmin command.
$ orchadmin check
NOTE: You will have to give full path of the DataSet descriptor file in the orchadmin command.
Hope this helps....
Perfection is not about making no mistakes. Perfection is about fixing your mistakes.