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...

Hi guys,

7. how to get this output
i/p
col1,col2
101,a
102,b
103,c
104,d


o/p
col1,col2
101,d
102,c
103,b
104,a

Thanks

Answer Posted / anil

1. Take a copy of the file in two links where id only in one link and value in another link.

2. For id link add a column generator for giving row number(Temp). Run this in sequential mode. Parition by Sort Merge (ascending)

3. For value link add a column generator for giving row number(Temp). Run this in sequential mode. Parition by Sort Merge (descending).

4. Now add look up between two columns with Temp as lookup. 

5. You will get the output as desired.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a merge?

1238


What is the difference between orabulk and bcp stages?

1072


What is the use of hoursfromtime() function in transformer stage in datastage?

1111


Name the command line functions to import and export the DS jobs?

1199


How to find value from a column in a dataset?

2249


how to delete one row in target dataset

3164


i have a job with 3 possibiliies finish with ststus ok abbort warning how do you handle these 3 in job sequence? explain the situation where you have appiled scd in your project? chandu

2776


Which commands are used to import and export the datastage jobs?

1460


There are two file are there .1st file contains 5 records and 2nd file contain 10 records in target they want 50 records.how can achieve this

2292


What are orabulk and bcp stages?

1163


How do y read Sequential file from job control?

16075


What are iconv and oconv?

1294


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

2212


On which interface you will be working as a developer?

1102


How to RD using transformer?

1471