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

Why fact table is in normal form?

771


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

810


What is the importance of the exception activity in datastage?

721


describe the Steps to confiure a Qlogic switch

2050


What are the components of datastage?

745






What is active and passive stage?

1018


Can you explain repository tables in datastage?

1013


Name the different types of Lookups in Datastage?

840


Explain how a source file is populated?

928


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

1773


explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?

2017


Where the datastage stored his repository?

702


Describe stream connector?

920


if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables? how can i implement scd typ1 and type2 in both server and in parallel? field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the duplicate rows,inthe fields?

1845


In Informatica,for the table I can find coreesponding dependent mappings.Likewise can I find the dependent jobs with all the information by using the table name

2120