I/P

---



ID Value

1 AB
2 ABC
3 ADE
4 A

O/p
---
ID Value
1 A
1 B
2 A
2 B
2 C
3 A
3 D
3 E
4 A

Answer Posted / subbuchamala

SRC-->TFM--->TGT
in TFM, Use Stage variables and Loop variables as below:

StageVar-->Len(Lnk.Value)===>this will give length of string of "Value" column. i.e.,
ID Value StageVar

1 AB 2
2 ABC 3
3 ADE 3
4 A 1

Next, in the Loop variable part:
Loop While==> @ITERATION<= StageVar
For each input row, Loop will repeat until "Value" length finishes.

Add new Loop variable-->LoopVar and put below derivation:
Left(lnkCstIPSGMSPread.IJABL, @ITERATION)-->LoopVar

Next, in the Output Col Derivation:
Lnk.ID-->ID
LoopVar-->Value

Finally, you will required Output.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read the length of word in unix?

878


What are the enhancements made in datastage 7.5 compare with 7.0?

705


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

733


What is the project in datastage?

658


Define data aggregation?

660






How to perform incremental load in datastage?

659


How and where you used hash file?

652


Which is the best institute in Hyderabad to learn OBIEE and DataStage?Please tell me faculty name also

2738


What is datastage?

645


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

1623


how to write server Routine coding?

1657


How to implement complex jobs in data stage?

608


Define orabulk and bcp stages?

669


What is the use of datastage designer?

632


What are some different alternative commands associated with "dsjob"?

645