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

How to split flatfile to multiple files based on the 1st character of the rows

$
0
0

Dear all:

Any idea how to use SSIS to load a flat file as required below?

input:

0: Banner record, 
1: Package record, 
5: Member record,
7: Application ID and Image ID record
1: Package record, 
5: Member record,
7: Application ID and Image ID record
1: Package record, 
5: Member record,
7: Application ID and Image ID record
1: Package record, 
5: Member record,
7: Application ID and Image ID record
9: Trailer record

output:

File 1      
      
1: Package record,    0: Banner record,    9: Trailer record
1: Package record,    0: Banner record,    9: Trailer record
1: Package record,    0: Banner record,    9: Trailer record
1: Package record,    0: Banner record,    9: Trailer record
      
File 2      
      
5: Member record,   0: Banner record,    9: Trailer record
5: Member record,   0: Banner record,    9: Trailer record
5: Member record,   0: Banner record,    9: Trailer record
5: Member record,   0: Banner record,    9: Trailer record
      
File 3      
      
7: Application ID and Image ID record   0: Banner record,    9: Trailer record
7: Application ID and Image ID record   0: Banner record,    9: Trailer record
7: Application ID and Image ID record   0: Banner record,    9: Trailer record
7: Application ID and Image ID record   0: Banner record,    9: Trailer record

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>