Strange hashed file behaviour

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
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Strange hashed file behaviour

Post by snassimr »

Hi , everybody !!!

I have a hashed file tha contains 1000 rows. Each run of some jobs insert into the file 10 rows and the option "Clear before writing" is unchecked.
I need to update each time these 10 rows .

The problem is all rows (each time therwea can be 90 that are different) get NULL values except the key fields.

Example :

Original Hashed File

Key field Field1
1 aaa
2 bbb
3 ccc

Rows to update :

1 ddd

I am expecting to get :

1 ddd
2 bbb
3 ccc

And I get :

1 ddd
2 NULL
3 NULL

What the problem ?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

One possibility is that your hashed file is the driving stream and source is the reference. So any unmatched value results in setting NULL.

You can include a constraint in the update link as IsNotNull(hashDesc).
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Post your job design.
-craig

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