input like
2 7 8
9 5 1
7 3 6
output:2 5 6 how to find out this plz explain?
Answers were Sorted based on User's Feedback
Answer / deepanshu
supposing single column is there having values
278
951
736
sol'n :
Use transformer string function with @inrownum variable.
inputcolumn[@inrownum,1]
will give you desired o/p
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
deptno wise to find max and min,and sum of rows and in target to company wise maximum
Describe the architecture of datastage?
How did you reconcile source with target?
What is the use of Row generator stage?
In a table 100 records are there after 50records job is aborted how can u insert all records in target table.
HOW CAN WE SEE THE DATA IN DATASET?
what is diff b/w datastage 8.1,8.5,8.7?
Wat is isolation level and when do u use them?
WHERE YOU USE UNIX COMMANDS AS A ETL DEVELOPER?
What is RCP
What is a range lookup?
what is advantages of snowflake when it is used?