Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 perform incremental load in datastage?

1265


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

2874


table actions available in oracle connector?

1658


What is the difference between odbc and drs stage?

1137


How do you start developing a datastage project?

1160


What are the different types of lookups in datastage?

1108


What are the some differences between 7.x and 8.x version of datastage?

1309


Difference between data warehousing and olap?

1151


what is flow of project?

2059


Difference between sequential file and data set?

1261


What are the different kinds of views available in a datastage director?

1076


Name the different sorting methods in datastage.

1106


how to abort the job its matain duplicates?

2624


how to add a new records into source?

2058


What are the steps required to kill the job in Datastage?

1270