Hi,<br><br>I have a bank (lockbox) file that I need to import into 3 different tables on a daily basis.<br><br>tblFileHeaderLayout = 1<br>tblBatchHeaderLayout = 2<br>tblDetailHeaderLayout = 3<br><br>The file has three distinct lines and will have multiple batches in each file like 123333323333233333 (vertical) <br>each starting in position one of the record:<br><br>1XXXXXXXXXXXXXXXXXXX002XXXXXXX (One File)<br>2XXXXXXXXXXXXXXXXXXXXXXXXXX001X (Multiple Batch Records) <br>30361038000004016326396000396000 (Multiple Detail Records)<br>2XXXXXXXXXXXXXXXXXXXXXXXXXX002X <br>30361038000004016326396000396000 (Detail Records) 30361038000004016326396000396000 <br>30361038000004016326396000396000 <br><br>1(File) =RecTypCd/Date/CompanyID/DolTotal/BatchCnt/ItemCnt<br> Pos(1) 2-7 8-19 20-31 32-35 24-29<br>2(Batch) =RecTypCd/BatchNum/Date/CompanyID/DolTotals/ItemCnt<br> Pos(1) 2-4 5-9 10-20 21-26 27-32<br>3(Detail)=RecTypCd/BatchNum/Seqnum/CompanyID/AmtDue/AmtPaid<br> Pos(1) 2-4 5-9 10-20 21-26 27-32<br><br>I am looking for guidance for the best way to process this.<br><br>Thanks for your help.<br><br><br><br><br>