[Info-vax] *.xml files - carriage return's go into file in VMS - how to remove CR's?
Chuck Aaron
caaron at ceris.purdue.edu
Fri Mar 27 13:25:47 EDT 2009
The text file is created on VMS from an Adabas Natural program. It
does contain the embedded CR/LF. This new file is compared against
an MS word file that does not contain CR/LF and the difference between
the files are analyzed and actions taken accordingly. Since we really
only need to look at the text difference, the CR/LF in the one file
is causing the difference to include these when we would not want them
to be included in the results.
sapienzaf wrote:
> Chuck,
>
> That's a simple text file. So the question is whether there really is
> an embedded CR/LF in the records or if the program you are using to
> read the file is inserting them into the read buffer as a by-product
> of how you are opening the file.
>
> Step 1 would be to check if the records actually contain a CR/LF.
> Simply do the following:
>
> $ DUMP /RECORD=END=1 USER$DISK:[PXZA003]ABW_FROM_MSWORD.XML
>
> Check the dump that is produced and look for the hex representation of
> CR/LF (x0A0C). If you see the hex values at the end of the record
> then it contains CR/LF. If you don't see the hex values then the
> program is opening the file incorrectly.
>
> The other piece of the puzzle is how the file gets transferred (and
> mangled) from the Windows system to the OpenVMS system. But that's a
> different discussion.
More information about the Info-vax
mailing list