×
Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
Thank you for your reply Chuck.
Let me see if I can be more precise in the description of my problem.
You are correct the data is coming from the qualified field DESCRIPTION.
The process selects records from a MS Sql server and outputs to a csv
file.
The DESCRIPTION field has data something like this example ... where CRLF
represents a Carriage Return and Line Feed.
<example>
special care.CRLFAAN Account.CRLF
<endExample>
The extracted file is then copied to a data base file member using FTP. (I
am not using CPYFRMIMPF)
The result in the data base file member is three records - for example;
Please note the double quotes are only used to highlight the data, they do
not actually exist.
<example>
Record # 1 "special care."
Record # 2 "AAN Account."
Record # 3 ""
<endExample>
The statement;
isnull( replace( replace( convert( nvarchar(max), TR.Description )
, char(13) + char(10),' ' ), ',', ';' ), '' ) as [Info]
is to replace any char(13) (Carriage Return) and char(10) (Line Feed) with
blanks and any Commas with Blanks.
My understanding this will replace ALL occurrences not just the first
occurrence found ?
So the question is; Why do the CRLF still exist in the exported data.
Appreciate any assistance
Don Brown
As an Amazon Associate we earn from qualifying purchases.
Follow-Ups :
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page . If you have questions about this, please contact
[javascript protected email address] .
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.