Record count from datasets

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
koolnitz
Participant
Posts: 138
Joined: Wed Sep 07, 2005 5:39 am

Record count from datasets

Post by koolnitz »

Hi All,

I have many parallel jobs, which create and populate datasets. After all the jobs finish, I want to get the count of records present in each of the datasets. All the datasets are stored in a single directory. I am aware of just one approach which doesn't look efficient to me - creating new jobs to pull the records from datasets and getting their counts.

Is there any easy and better approach?

Thanks in advance!
Nitin Jain | India

If everything seems to be going well, you have obviously overlooked something.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You can use the UNIX command "orchadmin describe {dataset}" to get the information you are looking for.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

You can also count the number of records in dataset in command line. Pls search for it.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Kumar - please tell me what the command line is (apart from the "orchadmin" one I mentioned)? I'm not aware of any other method of doing this so I am curious what option you are referring to.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ArndW wrote:Kumar - please tell me what the command line is (apart from the "orchadmin" one I mentioned)? I'm not aware of any other method of doing this so I am curious what option you are referring to.

$dsrecords ds_name
This can be found in UserGuide.pdf, and I dont find it any where else.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's in the DX334 (DataStage Essentials) class from IBM also.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

kumar_s wrote:$dsrecords ds_name
Thanks, that is probably more efficient than firing up the whole orchadmin.
koolnitz
Participant
Posts: 138
Joined: Wed Sep 07, 2005 5:39 am

Post by koolnitz »

Thanks guys.

Information by kumar_s in viewtopic.php?t=99456&highlight=dsrecords post is helpful.
Nitin Jain | India

If everything seems to be going well, you have obviously overlooked something.
Post Reply