[Info-vax] *.xml files - carriage return's go into file in VMS - how toremoveCR's?
Arne Vajhøj
arne at vajhoej.dk
Fri Apr 17 21:53:33 EDT 2009
David J Dachtera wrote:
> Arne Vajhøj wrote:
>> David J Dachtera wrote:
>>> 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.
>> It does not change the physical content of the file (the blocks of
>> the file).
>>
>> But it does change the logical content of the file (the records)
>> by making the CR part of the record delimiter instead of part
>> of the record.
>
> You're confusing Record Attributes (RAT) - which do NOT change the way
> your program views the data - with record Format (RFM) - which does.
Yuck.
You are correct.
It is /ATTR=RFM:STM not /ATTR=RAT:CR that does the trick.
Arne
More information about the Info-vax
mailing list