option #27
Suppression of record truncation I/O error
WTSupported in traditional Synergy on Windows
|
WNSupported in Synergy .NET on Windows
|
USupported on UNIX
|
VSupported on OpenVMS
|
System option #27 allows storage of a larger record into a smaller destination buffer on a READ or READS and allows a write of a larger buffer to a smaller record on a STORE, WRITE, and WRITES.
If system option #27 is set, both the $ERR_IRCSIZ and $ERR_TOOBIG errors are disabled for ISAM files, and the $ERR_TOOBIG error is disabled for non-ISAM files. (Instead of generating an error, truncation occurs.) Disabling these errors enables programs that take advantage of incorrectly sized buffers to continue to function correctly.
If this option is not set, errors $ERR_IRCSIZ and $ERR_TOOBIG are enabled, and a READ or READS isn’t allowed to store a larger buffer into a smaller destination, nor is a STORE, WRITE, or WRITES allowed to pass a larger buffer to a smaller record.
Use system option #27 with caution. An application that allows a record larger than the file’s defined record size to be written may eventually cause a significant field of the record to be truncated without warning as new fields are added to the record. |