row count in hash file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
kum_d
Participant
Posts: 20
Joined: Tue Jul 17, 2007 4:53 am

row count in hash file

Post by kum_d »

Hi ,

Can we ger row count in hash file.can i know how can we do that?
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: row count in hash file

Post 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.
hemachandra.m
Participant
Posts: 27
Joined: Wed Jan 03, 2007 1:29 am

Re: row count in hash file

Post by hemachandra.m »

DSLinkRowCount sometimes gives wrong values. I am not sure why this happens. So just check before using it.
Hemachandra
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

hemachandra can you please give some instances when you got wrong values? I used it quite frequently. It will help me further
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
hemachandra.m
Participant
Posts: 27
Joined: Wed Jan 03, 2007 1:29 am

Post by hemachandra.m »

When extractying data from Sybase database to a flat file, the count was wrong.
Hemachandra
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply