Strange behaviour of a 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
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Strange behaviour of a hash file

Post by gpbarsky »

Hi, my friends....

Y have a hash file, and a BASIC routine accessing it. Everything is fine, and suddenly one record is not stored in the hash file.

This hash file is fed from a SAP table.

There were no changes to the SAP table, no changes to the hash file, no changes related to this small environment.

So, the question is: why from one day to another, a record is missing ?

Since several months it was working fine, but now there is one record that is not stored.

Is there any maintenance to do with hash files ? The size of this file is about 100Kb.

Thanks in advance.
:cry:
Guillermo P. Barsky
Buenos Aires - Argentina
clshore
Charter Member
Charter Member
Posts: 115
Joined: Tue Oct 21, 2003 11:45 am

Post by clshore »

It would help if you posted some more info, like the hash file structure.
How do you know that the record is missing? What are the keys? Is a key-combo that was there before now gone, or are non-key values associated with an existing key-combo now different?

Carter
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Records can not "go missing" from hashed files unless a specific DELETE statement (or command) is issued.
It is possible, of course, that the hashed file has become corrupted; you would need to check for this.
And your answer to Carter's question might help us to target an answer a little more accurately.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Try writing the same recs into a seq file for comparison.
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Post by gpbarsky »

Thanks for answering.

It was an application problem, because my development and production environments get mixed. So, I thought that the data I was seeing was from production, but really was from development.

Thanks again.
Guillermo P. Barsky
Buenos Aires - Argentina
Post Reply