Create a job to load all unique products in one table and the duplicate rows in to another table.

The first table should contain the following output

A
D

The second target should contain the following output

B
B
B
C
C

Q2. Create a job to load each product once into one table and the remaining products which are duplicated into another table.

The first table should contain the following output

A
B
C
D

The second table should contain the following output

B
B
C

Answer Posted / nams

It can be done by unix uniq -u file_Name and uniq -d file_Name
or it can be done from datastage sequential file stage filter option from property.....write command overthere like above.....

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Could anyone give brief explanation bout datastage admin

1975


disign the complex job in u r project?(they are aksing only complex job design and then data flow...)

2088


if we using two sources having same meta data and how to check the data in two sources is same or not? and if the data is not same i want to abort the job ?how we can do this?

1761


Define meta stage?

790


how to abort the job its matain duplicates?

2113






How many Key we can define in remove duplicate stage?

824


What is the sortmerge collector?

672


What are system variables and sequencers in datastage

615


project Steps,hits, Project level HArd things,Solved methods?

1641


What a datastage macro?

642


What are the functionalities of link partitioner and link collector?

601


Have you used Unstructured data?

841


What are stage variables?

642


What are the types of hashed files in data stage

650


Give an idea of system variables.

593