input like
2 7 8
9 5 1
7 3 6
output:2 5 6 how to find out this plz explain?
Answer Posted / bhavani
we can acheive this using transformer stage:
1. Check the record count using AGGREGTOR stage and have a column count
2. In the transformer initiate a loop with condition @ITERATION <=count. and loopvar = @iteration
3.if @INROWNUM = loopvar then right(left(@iteration),1) --> output value
Now the result will be 2
5
6
Let me know if this is correct.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is staging variable?
How many types of hash files are there?
Why fact table is in normal form?
How to RD using transformer?
How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.
A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?
Differentiate between datastage and datastage tx?
What is apt_config in datastage?
Can you explain kafka connector?
How many types of sorting methods are available in datastage?
Where do you see different stages in the designer?
CHANGE CAPTURE
What is the flow of loading data into fact & dimensional tables?
What is the Environment Variable need to Set to TRIM in Project Level?(In transfermer, we TRIM function but I need to impliment this project level using Environment variable)
What are the steps needed to create a simple basic datastage job?