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 are the types of containers and how to create them?

739


Explain entity, attribute and relationship in datastage?

837


What is staging variable?

799


How will you move hashed file from one location to another location?

1882


Lookup constraints

1023


What is the differentiate between data file and descriptor file?

1096


Which warehouse using in your datawarehouse

1873


What is job control?

792


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

878


Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC

1169


How do you start developing a datastage project?

842


What is the importance of the exception activity in datastage?

829


What are datastage sequences?

874


what is the custome stage in datastage? how can we impliment that one? plz tell me

2113


Can you explain how could anyone drop the index before loading the data in target in datastage?

1205