Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

split fixed width row into multiple rows in SSIS

$
0
0

I Have a fixed width flat file and that needs to be loaded into multiple oracle tables(one row need to be split into multiple rows)

the numbers which are on top of each column is there size,
and my desired output should look like shown below.

Flatfile data(fixed width):

3   6          3     11               3   10                3     10          3
ID NAME  AGE CTY1           ST1 CTY2            ST2 CTY3      ST3
200JOHN  46  LOSANGELES CA  HOUSTON   TX  CHARLOTTE NC 
201TIMBER54  PHOENIX       AZ                          CHICAGO     IL   
202DAVID 32  ATLANTA       GA  PORTLAND  AZ 

the occurrence may vary.. it can grow upto 20-30

DESIRED OUTPUT:
TABLE1
ID NAME  AGE
200JOHN  46
201TIMBER54
202DAVID 32
TABLE2
ID  SEQ CTY        ST
200 1   LOSANGELES CA  
200 2   HOUSTON    TX  
200 3   CHARLOTTE  NC
201 1   PHOENIX    AZ      
201 2   CHICAGO    IL        
202 1   ATLANTA    GA  
202 2   PORTLAND   AZ 

can some one help me out

Thanks










Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>