[Info-vax] *.xml files - carriage return's go into file in VMS - how to remove CR's?
sapienzaf
sapienza at noesys.com
Fri Mar 27 13:12:46 EDT 2009
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