× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.