I have source file which contains duplicate data,my
requirement is unique data should pass to one file and
duplicate data should pass another file how?

Answer Posted / purba

Input:
A
B
B
C
D
D
D

Required output:
A
B
C
D

Solution:
Seq file----->sort stage(create key change column for the I/p key row)
O/p:
A 1
B 1
B 0
C 1
D 1
D 0
D 0

Now take filter stage to filter for key column=0 & keycol=1
We get 2 outputs:
A. B
B. D
C. D
D

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different kinds of views available in a datastage director?

800


Describe the main features of datastage?

858


how to export or import the jobs in .ISX file

952


How to implement complex jobs in data stage?

862


If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?

1835


What all are the different way to run a job?

839


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

809


Define data aggregation?

880


What are the steps required to kill the job in Datastage?

946


What is active and passive stage?

1149


Can you explain engine tier in information server?

880


What is the command line function to import and export the ds jobs?

897


Lookup constraints

1037


What are the stages in datastage?

833


Difference between sequential file and data set?

878