I have a scenario like
Deptno=10---->First record and last record
Deptno=20---->First record and last record
Deptno=30---->First record and last record
I want those first and last records from each department in
a single target. How to do this in DataStage, any one can
assist me.
Thanks in advance.

Answer Posted / ashok

Source--->Sort stage--->copy stage
From copy stage we have to take two source stages
(source1,source2)
source1-->Removeduplicate stage(in this we can get first
record from each dept)
source2--->Remove duplicate stage(in this we can get last
record from each dept)
using funnel we can add these results.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

881


How rejected rows are managed in datastage?

1161


What is ibm datastage flow designer?

874


what are .ctl(control files) files ? how the dataset stage have better performance by this files?

2487


Can you explain tagbatch restructure operator?

917


On which Dimension Table you implemented SCD Type in your Project

1777


What are the different layers in the information server architecture?

838


what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?

1117


What is the importance of the exception activity in datastage?

827


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

921


What are the components of datastage?

842


Can you highlight the main features of ibm infosphere information server?

870


what is 'reconsideration error' and how can i respond to this error and how to debug this

2326


What are the partitioning techniques available in link partitioner?

2007


What is a quality stage in datastage tool?

820