Page 1 of 1

updating hash file

Posted: Sun Oct 02, 2005 2:46 am
by vinodhraj
hi,

how to update a hash file?

thanks

vinod

Posted: Sun Oct 02, 2005 3:50 am
by ArndW
Vinodhj,

in DataStage jobs when you output to a hashed file it is always done as an 'update'.

Posted: Sun Oct 02, 2005 7:53 am
by chulett
In other words - just write to it.
:wink:
Hashed files are "destructive overwrite", meaning that when multiple records are written with the same key into the hashed file, each completely replaces the previous version. Therefore, last one in wins.

That should also lead you to understand that there is no way to update individual fields - you must replace the entire record.

Posted: Sun Oct 02, 2005 4:52 pm
by ray.wurlod
Unless, of course, you use a UniVerse stage! :wink:

Posted: Sun Oct 02, 2005 7:43 pm
by chulett
Well... of course! :lol: