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 / naga

take sequential file and give its output to copy and copy
it to two datasets.in one dataset select the partition on
deptno type=modulus and perform sort and select both stable
and unique you will get first redcords and in another
dataset select partition on deptno and type modulus and
perform sort and select only unique and give give both
dataset outputs to funnel and give its output to dataset

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1890


Does datastage support slowly changing dimensions ?

830


Demonstrate experience in maintaining quality process standards?

2178


How to manage date conversion in Datastage?

834


what are the devoleper roles in real time? plz tell i am new to datastage....

1867


EXPLAIN SCD

1158


what is the use of surogate key in datastage

2061


What is the flow of loading data into fact & dimensional tables?

817


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

2508


Explain the datastage parallel extender (px) or enterprise edition (ee)?

978


i WANTED TO USE THE RANGE LOOKUP SCENARIO IN DATASTAGE 7.5.2 SRVER JOB.i HAVE A DATE FIELD IN SOURCE AND I SHOULD MATCH IT WITH A FIELD IN LOOKUP FILE.BUT,THE FIELDS SHOULD MATCH EVEN THOUGH THERE IS SOME RANGE.CAN SOMEONE TELL ME HOW CAN I DO THAT. THANKS

3512


What is job control?

798


What are the main features of datastage?

905


How to reverse the string using unix?

3140


What are constraints and derivations?

918