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 / venkata ramana

Input Seq File:-

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

seq---Trans---Rem Dups----> Dataset


TRANSFORMER:
------------
STEP1:

Create 3 stage variables like s1,s2,s3

DSLink3.NAME --->s1

If s1<>s3 then DSLink3.LOC else s2:DSLink3.LOC --->s2

s1--->s3

STEP2:

Derivations Column bane

s2------------> LOC


Remove duplicate stage:
-----------------------

Key == NAME

Duplicate To Retain = Last


Output Dataset result:-

NAME LOC
Ram Hyd ban
Raj chn pun
sam del

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.

1673


What is the difference between the local container and shared container?

654


Which commands are used to import and export the datastage jobs?

992


What is the purpose of interprocessor stage in server jobs?

1731


what is the use of skid in reporting?

1961






Why do you need stage variables?

671


What are the types of jobs we have in datastage?

678


Give an idea of system variables.

593


Lookup constraints

848


what is the use of surogate key in datastage

1825


WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE

3273


Why do we use link partitioner and link collector in datastage?

689


What is the roundrobin collector?

644


Name the command line functions to import and export the DS jobs?

715


What is orabulk stage?

642