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

What is "fatal error/rdbms code 3996" error?

666


What are the different types of lookups in datastage?

634


How do you start developing a datastage project?

662


im new to this tool im now at project plz tell me step by step process how to design plz help me i wnt to go with exp for job plz give me d proper design and explination

1635


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

715






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

1638


Why we use surrogate key?

701


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

685


why do u need the IOS upgradation in a FC switch

1879


Can you explain tagbatch restructure operator?

707


how to implement scd2 in datastage 7.5 with lookup stage

5135


Can you define merge?

670


How to perform incremental load in datastage?

675


describe the Steps to confiure a Qlogic switch

1944


What are the various kinds of containers available in datastage?

571