On 14/11/2020 10:16 am, Paul Gilmartin wrote:
Except for UNIX files. From Using Data Sets:
Record Processing for UNIX Files
When a file is accessed as record-oriented (with FILEDATA=RECORD), your program
does not see the record prefixes. The PUT macro adds a prefix to each record in
the same format as with BSAM or QSAM. A GET macro removes the prefix. Each
record prefix is mapped by the IGGRPFX macro. It is the following four bytes:
Offset Length Symbol Description
0 1 RPFX00 Reserved.
1 3 RPFXLLL Length of record that follows this prefix.
(FSVO "same".)
I admit I had never looked at the details of FILEDATA=RECORD. It appears
that IBM has taken RFC 4506 and made a small change so their
implementation is incompatible with anything that actually follows the RFC.
Why would IBM do that? Implementing the RFC format seems reasonable.
Implementing an incompatible variation, less so.
Andrew Rowley
Black Hill Software
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN