updating 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
vinodhraj
Participant
Posts: 53
Joined: Mon Sep 12, 2005 6:51 am

updating hash file

Post by vinodhraj »

hi,

how to update a hash file?

thanks

vinod
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Vinodhj,

in DataStage jobs when you output to a hashed file it is always done as an 'update'.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Unless, of course, you use a UniVerse stage! :wink:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... of course! :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply