[Info-vax] *.xml files - carriage return's go into file in VMS - how to remove CR's?

JF Mezei jfmezei.spamnot at vaxination.ca
Fri Mar 27 13:56:41 EDT 2009


Chuck Aaron wrote:
> The text file is created on VMS from an Adabas Natural program. It
> does contain the embedded CR/LF. 


It contains the CR and the LF as part of the variable length record ? In
other words:

create temp.txt
Hello World

yields:

FFFF0064 6C726F57 206F6C6C 6548000B ..Hello World... 000000

An 11 byte record (000B). The last byte is 0x64 (d).

Are you saying that in your case, you have:

FF0A0D64 6C726F57 206F6C6C 6548000D ..Hello World... 000000

A 13 byte record ending with CR/LF inside the variable length record ?

I assume you cannot change the VMS application to create the files
properly ? (opening it as a stream file would cause the application's
insistance on writingf CR/LF itself to provide proper record separators).

I would try to CONVERT the .XML document to one of the STREAM (STREAM,
STMLF STMCR) formats, and then convert it back to variable length to see
how it handles it. It is possible that you would end up with a blank
line between each lines.



More information about the Info-vax mailing list