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 / c raghavendra nivas

      
             -------removeduplicate(first)
source---copy                    ------funnel----output
             -------removeduplicate(last)

it works i did it
try if u want

if its a database you can do witha co-related sub query

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?

2545


What are the types of containers and how to create them?

558


How do you schedule or monitoring the job?

671


What are the types of views in datastage director?

1249


Highlight the main features of datastage?

615






Define oconv () and iconv () functions in datastage?

883


Name the third party tools that can be used in datastage?

618


Difference between ‘validated ok’ and ‘compiled’ in data stage?

677


Why we use surrogate key?

700


What are the components of datastage?

656


Could anyone give brief explanation bout datastage admin

1973


How to find value from a column in a dataset?

1769


What are routines in datastage?

775


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

2182


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

1702