in one scenario source flat file like
Fileld1
00122001550056200568
00256002360014500896
00123004560078900258
00147004560025800256
divide each 5 numbers as one column i.e
here i need
field1 field2 field3 field4
00122 00155 00562 00568
00256 00236 00145 00896
00123 00456 00789 00258
00147 00456 00258 00256
plz help me....
Answer Posted / mrvprasad
Take 4 field names(field1 field2 field3 field4) in output stage.
use Transformer stage: In Derivation use the below substring
Field1: SourceColumn[1,5]
Field2: SourceColumn[6,10]
Field3: SourceColumn[11,15]
Field4: SourceColumn[16,20] use this one u will get correct o/p.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why do you need stage variables?
State the difference between an operational datastage and a data warehouse?
What are the different common services in datastage?
how to add a new records into source?
1)How will u implement SCD2 by using surrogate key. 2)What are the disadvantages with surrogate key. 3)How will you handle nulls in your project for the varchar, integer data types. 4)Can I use two fact tables in star schema. 5)3 jobs are running on the 2 nodes after I added one more node so can I compile those jobs to run on three nodes.
How a server job can be converted to a parallel job?
How do you register plug-ins?
How do you schedule or monitoring the job?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?
What is the precedence of stage variables,derivations, and constraints?
Define orabulk and bcp stages?
Nls stands for what in datastage?
What are the some differences between 7.x and 8.x version of datastage?
If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?