Number of rows in a data set
Moderators: chulett, rschirm, roy
Go to your dsenv file in $DSHOME and make a backup copy for it.
VI the dsenv file and add the following to SHLIB_PATH
save it and then execute it as follows
then try the following
That should work.
VI the dsenv file and add the following to SHLIB_PATH
Code: Select all
SHLIB_PATH=/home/dsadm/Ascential/DataStage/PXEngine/lib:SHLIB_PATH; export SHLIB_PATH
Code: Select all
. ./dsenv
Code: Select all
$APT_ORCHHOME/bin/dsrecords myfile.ds
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It's possible that DSHOME is not set, in which case cd $DSHOME will put you in your home directory, which is not where you want/need to be. After the cd command, issue a pwd command to determine to which directory you are currently attached.
If you're going to do a lot of work at the server command prompt, edit your .profile file to set DSHOME and to execute the $DSHOME/dsenv script.
![Idea :idea:](./images/smilies/icon_idea.gif)
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you are getting "command not found" the problem lies with your PATH environment variable - not SHLIB_PATH, LD_LIBRARY_PATH or anything else.
Fix that first. It needs to include $APT_ORCHHOME/bin.
Of course, you must have previously set APT_ORCHHOME, or hard code the pathname in PATH.
You will also need to have APT_CONFIG_FILE set, since a Data Set is tied in some sense (number of nodes) to the configuration file in use when it was created.
Executing the $DSHOME/dsenv script (assuming DSHOME is set, see my earlier post) should correctly set LD_LIBRARY_PATH. You will learn whether this is so if executing dsrecords generates a message indicating that a file whose name ends in ".so" is not found.
But get PATH fixed first.
Fix that first. It needs to include $APT_ORCHHOME/bin.
Of course, you must have previously set APT_ORCHHOME, or hard code the pathname in PATH.
You will also need to have APT_CONFIG_FILE set, since a Data Set is tied in some sense (number of nodes) to the configuration file in use when it was created.
Executing the $DSHOME/dsenv script (assuming DSHOME is set, see my earlier post) should correctly set LD_LIBRARY_PATH. You will learn whether this is so if executing dsrecords generates a message indicating that a file whose name ends in ".so" is not found.
But get PATH fixed first.
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.
NO. You need either one of those. If your on HP-UX only then you will need SHLIB_PATH. I think the rest of the platforms use LD_LIBRARY_PATH.abc123 wrote:My dsenv file does not have a SHLIB_PATH. There is a LD_LIBRARY_PATH. Am I getting this error due to not having SHLIB_PATH in my dsenv file?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: