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 / d anil babu

take source--->copy---->remove dupli stage---->
----->remove dupli stgae-->funnel-->dataset
in first remove duplicate stage select duplicate retain first
in second rmd select duplicate retain last and in funnel u
have to select the sort funnel

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do y read Sequential file from job control?

15029


Could anyone give brief explanation bout datastage admin

2146


How many types of stage?

894


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

1123


What are the benefits of datastage?

921


What is the difference between informatica and datastage?

876


What is merge stage?

961


What is the difference between orabulk and bcp stages?

768


What is difference between symmetric multiprocessing and massive parallel processing?

855


Describe the architecture of datastage?

765


AGGREGATOR default datatype

1122


What all the types of jobs you developed?

865


how to export or import the jobs in .ISX file

934


explain about citrix scheduling tool in datastage

2060


Lookup constraints

1023