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
Differentiate between operational datastage (ods) and data warehouse?
How do you remove duplicate values in datastage?
Source has 2 columns: USA,NewYork INDIA,MUMBAI INDIA,DELHI UDS,CHICAGO INDIA,PUNE i want data in target like below: INDIA,MUMBAI1 INDIA,DELHI2 INDIA,PUNE3 USA,NEWYORK1 USA,CHICAGO2
What are the types of containers in datastage?
What is size of a transaction and an array means in a datastage?
Why fact table is in normal form?
What is difference between server jobs & parallel jobs?
What are some prerequisites for datastage?
Explain connectivity between datastage with datasources?
What are the types of hashed files in data stage
Enlist various types of routines in datastage.
What is the method of removing duplicates, without the remove duplicate stage?
What are the main differences you have observed between 7.x and 8.x version of datastage?
Can you explain players in datastage?
What is the command line function to import and export the ds jobs?