Hash Files

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
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

Hash Files

Post by srinagesh »

Hi

It may look like a stupid question, but my Manager has asked me to see if the Hash Files created in the load process can be cleared at the end of the load cycle everyday and recreated the next day.

Is it ok to delete Hash files at the end of each load cycle and create new ones the next day, during next load cycle.

Any suggestions ?

-Nagesh
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Sure. It is built into the job. The job can clear hash files before loading them or DELETE and CREATE. This is very effective. You can even size the hash file properly which will speed up loading the hash file.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Clearing a hashed file at the end of the run does not gain anything because hashed files, by default, hang onto any disk space that has been allocated to them. You would need either to delete the hashed file at the end of the run, or to create a paragraph to clear then resize the hashed file. Either way there is the overhead on the next run to re-build, so why not just clear/re-create the file as part of that?
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