tried to know the total count of records in unix for the .ds file at unix command prompt. I am getting the following error.
How can i solve this problem
"ld.so.1: dsrecords: fatal: liborchsun4.so: open failed: No such file or directory"
Killed
I can see the file physically present in the directory
dsrecords command error
Moderators: chulett, rschirm, roy
Re: dsrecords command error
ANS : as per your query error message says there is no file such directory. when you looking in to that path that file it is there.....
can you check in unix this command .......wc file name.
you can get total number of records.
can you check in unix this command .......wc file name.
you can get total number of records.
sivaram
To run this (dsrecords) command on Unix prompt, you need to set the environment as following:
1> PATH=$PATH:$APT_ORCHHOME/bin:$DSHOME/bin:$DSHOME/lib
2> export PATH
3> . $DSHOME/dsenv
4> LIBPATH=$APT_ORCHHOME/lib:$LIBPATH;
5> export LIBPATH
6> $dsrecords <dataset dir/>dataset_name
1> PATH=$PATH:$APT_ORCHHOME/bin:$DSHOME/bin:$DSHOME/lib
2> export PATH
3> . $DSHOME/dsenv
4> LIBPATH=$APT_ORCHHOME/lib:$LIBPATH;
5> export LIBPATH
6> $dsrecords <dataset dir/>dataset_name
Nitin Jain | India
If everything seems to be going well, you have obviously overlooked something.
If everything seems to be going well, you have obviously overlooked something.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
And that, in turn, implies that you must have APT_ORCHHOME and DSHOME set. You also need APT_CONFIG_FILE set to point to the configuration file that was in use when the Data Set was created, or to a compatible configuration file.
The dsrecords executable, as koolnitz implies without being specific, is in the $APT_ORCHHOME/bin directory.
However, you do not need $DSHOME/lib in your command search path (PATH) - but you do need it in your shared library search path (LIBPATH, LD_LIBRARY_PATH or SHLIB_PATH, depending on your operating system).
The dsrecords executable, as koolnitz implies without being specific, is in the $APT_ORCHHOME/bin directory.
However, you do not need $DSHOME/lib in your command search path (PATH) - but you do need it in your shared library search path (LIBPATH, LD_LIBRARY_PATH or SHLIB_PATH, depending on your operating system).
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.
Re: dsrecords command error
siva.k82 wrote:can you check in unix this command .......wc file name.
you can get total number of records.
Actually, it will. While "wc" does mean "word count", without a specific modifier it will return all counts: bytes, words and lines where "lines" equates to records. To restrict the command to only checking "lines", use the following format:Narayana wrote:that will not give the records. It will give the word count i believe
Code: Select all
wc -l <filename>
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Undocumented feature
The dsrecords executable, properly executed, returns the number of records in the Data Set followed by the word "records".
You can use a -n option to suppress display of the word "records".
This is particularly useful in scripted applications, such as an interface with a third party scheduler.
Code: Select all
dsrecords MyProject/Controls/Engagements.ds
277381 records
Code: Select all
dsrecords -n MyProject/Controls/Engagements.ds
277381
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.