[Info-vax] Portable OpenVMS binary data format?
Arne Vajhøj
arne at vajhoej.dk
Tue Aug 7 20:52:18 EDT 2018
On 8/7/2018 2:36 AM, Louis Krupp wrote:
> As far as I can tell, STREAM_LF appends a linefeed (0x0a) to each
> record, STREAM_CR appends a carriage return (0x0d), STREAM_CRLF
> appends a carriage return and a linefeed, and STREAM appends nothing
> at all. If you were writing text, it would make sense to append a
> linefeed or a carriage return or both, but since you're writing binary
> data, I don't believe there's any point in appending anything at all.
ACCESS='SEQUENTIAL',RECORDTYPE='STREAM_LF' use text records terminated by LF
ACCESS='SEQUENTIAL',RECORDTYPE='STREAM_CR' use text records terminated by CR
ACCESS='SEQUENTIAL',RECORDTYPE='STREAM' use text records terminated by CRLF
ACCESS='STREAM' treat the file as a binary stream without anything (but
this is not available in VMS !!)
> Keep it simple. Just use STREAM,
ACCESS='STREAM' is not available on VMS
ACCESS='SEQUENTIAL',RECORDTYPE='STREAM' append CRLF which is not better
than appending LF and actually a bit unlogical on *nix.
Arne
More information about the Info-vax
mailing list