Page 1 of 1

row count in hash file

Posted: Wed Aug 08, 2007 10:57 pm
by kum_d
Hi ,

Can we ger row count in hash file.can i know how can we do that?

Re: row count in hash file

Posted: Wed Aug 08, 2007 11:46 pm
by sachin1
do you want a row count value in hash file or row count of hash file, depending on situation and requirement you need to apply furhter logic, but DSLinkRowCount can help you to know rowcount.

Re: row count in hash file

Posted: Wed Aug 08, 2007 11:52 pm
by hemachandra.m
DSLinkRowCount sometimes gives wrong values. I am not sure why this happens. So just check before using it.

Posted: Wed Aug 08, 2007 11:55 pm
by Raghavendra
hemachandra can you please give some instances when you got wrong values? I used it quite frequently. It will help me further

Posted: Thu Aug 09, 2007 12:40 am
by ray.wurlod
There are no rows in a hash file.

In a hashed file, however, there may be.

Set up a VOC pointer to the hashed file (search forum for SETFILE command) and use a query such as SELECT COUNT(*) FROM hashedfilename; to obtain the actual row count.

The link row count reports how many rows were sent but, if the key is an already-existing key on the hashed file a destructive overwrite occurs, which can mean fewer rows in the hashed file than were sent to it.

Posted: Thu Aug 09, 2007 12:59 am
by hemachandra.m
When extractying data from Sybase database to a flat file, the count was wrong.

Posted: Thu Aug 09, 2007 5:04 am
by ray.wurlod
... and what has that to do with the topic of this thread?!! Please do not hijack other people's threads - start a new one when the topic is different.