Hi
Can any one help regarding below

INPUT

NAME LOC
Ram hyd
Ram ban
Raj chn
Raj Pun
Sam del

OUPUT

NAME LOC
Ram Hyd ban
Raj chn pun
sam del

Answer Posted / ashok

TRANSFORMER:
------------
STEP1:
Take 3 stage variables
NAME--->s1
if s1<>s3 then LOC else s2:LOC --->s2
s1--->s3
STEP2:
In derivations s2--->LOC Field
Remove duplicate stage:
-----------------------
Retaining last

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a merge?

675


Lookup constraints

848


How a routine is called in datastage job?

611


What is the difference between validated and compiled in the datastage?

707


How many Key we can define in remove duplicate stage?

824






What is the difference between operational data stage (ods) and data warehouse?

680


Define Routines and their types?

627


Define repository tables in datastage?

706


Explain the situation where you have applied SCD in your project?

1568


Can you define merge?

670


What is job control?

625


What is datastage engine?

733


What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?

2550


Can anyone tell me a difficult situation who have handled while creating Datastage jobs?

2848


Is it possible to query a hash file?

1569