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 to export or import the jobs in .ISX file

728


Triggers,VIEW,Procedures

807


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

690


What is the different type of jobs in datastage?

585


describe the Steps to confiure a Qlogic switch

1946






How one source columns or rows to be loaded in to two different tables?

668


project Steps,hits, Project level HArd things,Solved methods?

1641


What is difference between symmetric multiprocessing and massive parallel processing?

664


Explain ibm infosphere information server and highlight its main features?

617


What are orabulk and bcp stages?

655


How and where you used hash file?

667


What are system variables and sequencers in datastage

619


What are the types of containers in datastage?

713


How many types of sorting methods are available in datastage?

641


What is use Array size in datastage

1317