Hi Team,
I have below requirement,please suggest approach to get desired output
input:
2
3
4
1
output:
2
2
3
3
3
4
4
4
4
1
Output should get the multiple values based on the value of input field.
Datastage scenario
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
Datastage scenario
Cheers,
Schindler
Schindler
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
Could you please explain in detail to us what exactly it was that you tried? And what result you did achieve? We're here to help, not just hand over work. Have you gone through the help documentation on the Transformer Looping concept and the functions that support it? Lots of information there!
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
For this scenario, try this code in transformer:
Hoping this will work
Code: Select all
Loop Condition : LoopVar<=input
Loop Variables :
LoopVar + 1 = LoopVar
input = LoopVar1
Output :
LoopVar1 = output
~Atul Singh
<a href=http://www.datagenx.net>DataGenX</a> | <a href=https://www.linkedin.com/in/atulsinghds>LinkedIn</a>
<a href=http://www.datagenx.net>DataGenX</a> | <a href=https://www.linkedin.com/in/atulsinghds>LinkedIn</a>