dsenv & orchadmin

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
njanopoulos
Premium Member
Premium Member
Posts: 4
Joined: Tue Feb 13, 2007 2:37 pm

dsenv & orchadmin

Post by njanopoulos »

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?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Welcome Aboard,
Dont you have to give the fully qualified path of myfile.ds ???
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
njanopoulos
Premium Member
Premium Member
Posts: 4
Joined: Tue Feb 13, 2007 2:37 pm

Post by njanopoulos »

You are correct - I took the path out for the post because it is very long. I should have put something in its place. Assume a fully-qualified path before 'myfile.ds'.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
njanopoulos
Premium Member
Premium Member
Posts: 4
Joined: Tue Feb 13, 2007 2:37 pm

Post by njanopoulos »

Both PATH and APT_CONFIG look good. I'm wondering now if it is .profile related.
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

No, it's not a problem with .profile. As Ray said you also must set the APT_CONFIG_FILE variable.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Does PATH contain $PXHOME/bin ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

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....
Assume everything I say or do is positive
ZDC
Premium Member
Premium Member
Posts: 15
Joined: Fri Nov 23, 2007 5:06 am

Post by ZDC »

Hi csrazdan,

I tried it and it worked

cheers,
ZDC
Zero Degree Consulting
asyafrudin
Participant
Posts: 16
Joined: Thu Oct 21, 2010 1:40 am
Location: Indonesia
Contact:

Post by asyafrudin »

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