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 |
project Steps,hits, Project level HArd things,Solved methods?
In my previous project we get data from mainframe and load it into datastage DB2 tables.Sometimes we get data as flat file or a mainframe tables itself directly we fetch the data.Is this a migration project?
what is difference between migration project and integration project? can anyone explain with the example Thanks in advance
What are the primary usages of datastage tool?
A job is having only 2 stages I/p dataset and target table.Job is taking very long time to load 50 million records.How to improve performance of this job.
Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?
what will happen if we allow duplicates in datastage lookup abort drop record 1st value of duplicate record none
Please tell me What is difference between 8.0 and 8.1
source which format u will get either fixed or delimiter length format? what is the symbol of delimiter?
how can you generate sequence number using only the sequential file stage?
What is the difference between SQl Loader and OCI in datastage?
How do you register plug-ins?