look up

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
satya99
Participant
Posts: 104
Joined: Thu Nov 30, 2006 1:22 pm

look up

Post by satya99 »

Hi,

Lookup data (Hashed File)

123456@10@b
123456@00@c

Source data ( Hashed file)

123456@00@c

I need to delete both the records from hash file if the first 6 positions are same.

Any advice.

Thanks in advance
Last edited by satya99 on Sat Sep 15, 2007 8:04 pm, edited 2 times in total.
satya
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: look up

Post by gateleys »

satya99 wrote:Hi,

Lookup data (Hashed File)

123456@10@b
123456@00@c

Source data ( Hashed file)

123456@00@c

I need to delete both the records from hash file if the first 6 positions are same.

Any advice.

Thanks in advance
Hello HELLO (God!! I feel stupid),
Delete both records from WHICH hashed file? Your source and lookup are both hashed files. Can you be a little more clear on your question?
gateleys
satya99
Participant
Posts: 104
Joined: Thu Nov 30, 2006 1:22 pm

Re: look up

Post by satya99 »

From lookup.

gateleys wrote:
satya99 wrote:Hi,

Lookup data (Hashed File)

123456@10@b
123456@00@c

Source data ( Hashed file)

123456@00@c

I need to delete both the records from hash file if the first 6 positions are same.

Any advice.

Thanks in advance
Hello HELLO (God!! I feel stupid),
Delete both records from WHICH hashed file? Your source and lookup are both hashed files. Can you be a little more clear on your question?
satya
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

                  HashedFile    UniVerse
                  (lookup)     (user-SQL)
                     :           ^
                     :           |
                     V           |
HashedFile   --->  TransformerStage  --->  (any)
 (source)
User-defined SQL in the UniVerse stage can effect the deletions you require.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
muruganr117
Participant
Posts: 40
Joined: Sun Jan 21, 2007 1:52 pm
Location: Chennai
Contact:

Re: look up

Post by muruganr117 »

Hi,

I am just giving my suggestion,
u can restrict the matching records using constraint and write rest unmatch records to work file and then write to the same hash file, clear before writing

regards
Murugan
gateleys wrote:
satya99 wrote:Hi,

Lookup data (Hashed File)

123456@10@b
123456@00@c

Source data ( Hashed file)

123456@00@c

I need to delete both the records from hash file if the first 6 positions are same.

Any advice.

Thanks in advance
Hello HELLO (God!! I feel stupid),
Delete both records from WHICH hashed file? Your source and lookup are both hashed files. Can you be a little more clear on your question?
Post Reply