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

6) my sorce
d1
d2
d1
d2
d1
d3
d2
d1


my target

tartget
1 d1
2 d1
3 d1
4 d1


target2


1 d2
2 d2
3 d3

Target 3

1 d3
Can any body send me answer this is argent requierment

Answer Posted / ankit gosain

Hi,

The solution to the problem can be achieved by the below
job structure & settings:

Source---->SortStage---->Transformer---->Tgt1,Tgt2,Tgt3

1. In Sort Stage, sort in assending mode w.r.t. source
column (say col1) & Create a change key column (say
ChangeKey).
2. In Transformer stage, create a stage variable (say
count) & it's derivation would be:
if ChangeKey=1 then 1 else count+1
3. Constraint for Tgt1 => col1=d1
Constraint for Tgt2 => col1=d2
select otherwise constraint for Tgt3.

Cheers,
Ankit :)

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oci?

1289


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

2144


Different ways a project can be moved to production ?...example ….export-import and Version control.

2433


Have you have ever worked in unix environment and why it is useful in datastage?

1124


Demonstrate experience in maintaining quality process standards?

2528


What is the precedence of stage variables,derivations, and constraints?

1069


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

2801


Can you highlight the main features of ibm infosphere information server?

1082


Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC

1400


How do you register plug-ins?

957


Describe link sort?

999


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

1050


How do you import and export data into datastage?

1223


What is aggtorec restructure operator?

1427


Why do we use link partitioner and link collector in datastage?

1119