z/OS® XL C/C++ VSAM support for streams does not provide for writing and updating these types of data sets opened for text or binary stream I/O.
fwrite() is called with a character buffer instead of an RRDS record structure.
Records are treated as contiguous. Once the current record is filled, the next record in the file is written to. For example, if the file consisted of only record 1, record 5, and record 28, a write would complete record 1 and then go directly to record 5.
Writing past the last record in the file is allowed, up to the maximum size of the RRDS data set. For example, if the last record in the file is record 28, the next record to be written is record 29.
Insertion of records is not supported. For example, in a file of records 1, 5, and 28, you cannot insert record 3 into the file.