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

David J Dachtera djesys.no at spam.comcast.net
Sun Mar 29 16:50:31 EDT 2009


JF Mezei wrote:
> 
> Your dir/full shows the file already has RAT=CR attribute. (carriage
> return carriage control).
> 
> If it didn't have it, it would be a simple matter of doing SET
> FILE/ATTRIB to enable RAT=CR and see RMS hide those end of line CRs for you.
> 
> One thing you could try:
> 
> SET FILE mumble.xml /ATTRIB=RAT=NONE
> 
> Edit it, and see if you now have 1 or 2 CRs at the end of the line.
> 
> then:
> 
> SET file mumble.xml /attrib=RAT=CR
> 
> and see if the CRs have magically disapeared.

Changing a file's record attributes does not change the file's content.

See this URL: http://www.djesys.com/vms/mentor/rms.html#att for more
information on RMS record attributes. Here's a quote from that
page/section:

"When reading or writing data, however, your program neither receives
extraneous characters from the data file nor outputs extraneous
characters to the data file, regardless of the file's record
attributes."

D.J.D.



More information about the Info-vax mailing list