art_r,
Following acperkins's suggestion of an ActiveX task within your DTS package, you could put a code snippet like
this into your procedure:
Dim fso, tsIn, tsOut, TheLine, arr
Set fso = CreateObject("Scripting.FileSystemObject")
Set tsIn = fso.OpenTextFile("c:\EE-Sample.txt")
Set tsOut = fso.CreateTextFile("c:\Corrected.txt", True)
Do Until tsIn.AtEndOfStream
TheLine = tsIn.ReadLine
arr = Split(TheLine, "^")
If TheLine <> "" Then
If UBound(arr) <> 15 Then TheLine = TheLine & " " & tsIn.ReadLine
tsOut.WriteLine TheLine
End If
Loop
tsIn.Close
tsOut.Close
Set tsIn = Nothing
Set tsOut = Nothing
Set fso = Nothing
That appeared to work for me when run as a *.vbs file.
Patrick