![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there any way DTS can read a trailer or header in a text file. Let say this is the flat file: 101 20056 NV01 103635 Decatur & Craig 102 30123 NV01 103636 Drake Plaza 103 26522 NV01 103636 Drake Plaza 104 56222 CA01 105326 West & Decatur ## 20030912 506040 The last line ## has the date and the character count for the file. How can I have my DTS package read this last line and dump the information in someplace else. Thanks is advance for any help. Sandra |
#3
| |||
| |||
|
|
The answer is to use an ActiveX object in DTS and use the Scripting.FileSystemObject, this will allow you to read an input file line by line and you can choose where to write the data depending on the data. This can be slow for large files. Pete "Sandra" <silvah (AT) wellsfargo (DOT) com> wrote in message news:034e01c37bbb$ba04bf80$a301280a (AT) phx (DOT) gbl... Is there any way DTS can read a trailer or header in a text file. Let say this is the flat file: 101 20056 NV01 103635 Decatur & Craig 102 30123 NV01 103636 Drake Plaza 103 26522 NV01 103636 Drake Plaza 104 56222 CA01 105326 West & Decatur ## 20030912 506040 The last line ## has the date and the character count for the file. How can I have my DTS package read this last line and dump the information in someplace else. Thanks is advance for any help. Sandra or create individual files and use the DOS copy command the merge them |
![]() |
| Thread Tools | |
| Display Modes | |
| |