Hash File Seems Corrupted

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
tcat2000
Participant
Posts: 6
Joined: Wed Jun 01, 2005 1:35 pm

Hash File Seems Corrupted

Post by tcat2000 »

I have a job that works correctly with a hash file. When I view data in the input tab... all data seems ok... all data seems ok in the output tab too.

I have another job that's not working with a hash file. All data seems ok in the input tab... but when I look into the output tab... column definitions are ok but I have garbage data... ie @KEY @ID @

Any suggestions?

Thanks
ml
Participant
Posts: 82
Joined: Wed Jun 09, 2004 1:03 pm
Location: Argentina

Post by ml »

1- check that you are using the same hash name.
2- check that you have the same metadata structure and the same column number.
3- first column should be a key.

If these dosen't help... delete the hash file and create another one.

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

Post by ray.wurlod »

@KEY, @ID and @ are entries from the file dictionary, they ought not to appear in the data portion of the hashed file. My guess is that someone has somehow copied the dictionary entries into the data part. These will have "D", "I", "PH" or "X" in field #1, so should be easily detected.

To see them

Code: Select all

SELECT F0, F1 FROM hashedfilename USING DICT VOC WHERE F1 IN ('D', 'I', 'PH', 'X');
To delete them, use the same FROM and WHERE clauses in a DELETE statement.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Gokul
Participant
Posts: 74
Joined: Wed Feb 23, 2005 10:58 pm
Location: Mumbai

Post by Gokul »

Hi Ray,

The Query Given will only work for Account Hash file.
What if the Hash file is not an Account file,but is created on specific Path.

Gokul
bryan
Participant
Posts: 91
Joined: Sat Feb 21, 2004 1:17 pm

Post by bryan »

hi gokul


please do a search for "Setfile"

If i remember it right, the syntax should be like
SETFILE hashfilepathwithname hashfilename OVERWRITING


this would put a pointer to ur hashed file in an outside directory in the VOC
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

When the jobs were corrupted. We rebuilt the indexes then it worked fine.

Hope the same could work for hash file corruption
Post Reply