Number of rows in a data set
Moderators: chulett, rschirm, roy
Number of rows in a data set
How do I know I many rows are ther in a dataset? I do find it out?
By the command dsrecords mydataset.ds. For more info check this post.
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 a DataStage command, so it's in one of the DataStage bin directories.
$APT_ORCHHOME/bin/dsrecords
You can also use the Data Set Management utility in the Manager client.
$APT_ORCHHOME/bin/dsrecords
You can also use the Data Set Management utility in the Manager client.
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.
ray, thank you for your response. When I do:
$APT_ORCHHOME/bin/dsrecords Myfile.ds
I get the following:
/home/dsadm/Ascential/DataStage/PXEngine/bin/dsrecords: error while loading shared libraries: liborchi686.so: cannot open shared object file: No such file or directory
May be I don't have the library installed?
$APT_ORCHHOME/bin/dsrecords Myfile.ds
I get the following:
/home/dsadm/Ascential/DataStage/PXEngine/bin/dsrecords: error while loading shared libraries: liborchi686.so: cannot open shared object file: No such file or directory
May be I don't have the library installed?
-
- Premium Member
- Posts: 301
- Joined: Thu Jul 14, 2005 10:27 am
- Location: Melbourne, Australia
- Contact:
You need to make sure your $APT_ORCHHOME/lib directory is in your library search path. This path is defined by the environment variable SHLIB_PATH, LIBPATH, or LD_LIBRARY_PATH, depending upon your system.
E.g.
HTH,
J.
E.g.
Code: Select all
SHLIB_PATH=$APT_ORCHHOME/lib:$SHLIB_PATH;export SHLIB_PATH
J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
How do I execute the dsenv script?
I went through the posts in this forum and found some responses. Some of them have lines which probably should be in the environment script but I am not sure. Also, I log in to the UNIX box using my own ID. If I execute the dsenv script, is that going to be for me or for all users?
Thanks.
I went through the posts in this forum and found some responses. Some of them have lines which probably should be in the environment script but I am not sure. Also, I log in to the UNIX box using my own ID. If I execute the dsenv script, is that going to be for me or for all users?
Thanks.
It will only be for your id for that particular terminal only. Do this
Code: Select all
cd $DSHOME
. ./dsenv
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 222
- Joined: Tue Aug 30, 2005 2:07 am
- Location: pune
- Contact:
If you are not able to do, whatever mentioned by our DSxians....
Just go to the Dataset Management tool in Designer/Manager. Just select your file it will shoe number of rows in each node. Is it ok for you ?
Just go to the Dataset Management tool in Designer/Manager. Just select your file it will shoe number of rows in each node. Is it ok for you ?
NageshSunkoji
If you know anything SHARE it.............
If you Don't know anything LEARN it...............
If you know anything SHARE it.............
If you Don't know anything LEARN it...............
ok then try this
Code: Select all
cd $DSHOME
sh dsenv
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.