dbTalk Databases Forums  

Removing carriage returns and line feeds characters from a flat fi

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Removing carriage returns and line feeds characters from a flat fi in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
LP
 
Posts: n/a

Default Removing carriage returns and line feeds characters from a flat fi - 05-10-2005 , 06:40 PM






I'm getting a flat text file that I using in DTS. The files are fixed width
but occasionally rows will have misplaced carraige return line feeds <cr><lf>
embedded in them.

I planing on using FileSystemObject to exam the rows and then
Replace(sReadLine, chr(10) chr(13), chr(40)chr(40),,0)
Any body have this problem.



Reply With Quote
  #2  
Old   
Michael Evanchik
 
Posts: n/a

Default RE: Removing carriage returns and line feeds characters from a flat fi - 05-11-2005 , 07:48 PM






LP,

if its a FIXED width file you should not have this problem at a cetain
point it should cut off and thats it. Is this a unix file? that might be a
problem.

"LP" wrote:

Quote:
I'm getting a flat text file that I using in DTS. The files are fixed width
but occasionally rows will have misplaced carraige return line feeds <cr><lf
embedded in them.

I planing on using FileSystemObject to exam the rows and then
Replace(sReadLine, chr(10) chr(13), chr(40)chr(40),,0)
Any body have this problem.



Reply With Quote
  #3  
Old   
LP
 
Posts: n/a

Default RE: Removing carriage returns and line feeds characters from a fla - 05-12-2005 , 07:40 AM



Thanks for getting back with me.

I mispoke, I actually have both flat files and .csv. This one is a comma
seperated file.

Thanks for the tip.

LP

"Michael Evanchik" wrote:

Quote:
LP,

if its a FIXED width file you should not have this problem at a cetain
point it should cut off and thats it. Is this a unix file? that might be a
problem.

"LP" wrote:

I'm getting a flat text file that I using in DTS. The files are fixed width
but occasionally rows will have misplaced carraige return line feeds <cr><lf
embedded in them.

I planing on using FileSystemObject to exam the rows and then
Replace(sReadLine, chr(10) chr(13), chr(40)chr(40),,0)
Any body have this problem.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.