Maximum-LOB-bytes-per-field is an 8-byte unsigned integer that specifies the maximum sized Large-object, in bytes, selected from a row for which the database is permitted to return data inline, overriding a DBCAREA Return-objects-as option to defer data by returning a locator. Whether the database supports this feature can be ascertained using the DBCHQE Integrated-LOB query QERILSU value. The Maximum-LOB-bytes-per-field value does not include the length of the standard 8-byte database prefix for LOB datatypes: only the actual amount of data should be included.
Maximum-LOB-bytes-per-field exists only when DBCHINI had been called for a DBCAREA with Total-length set to at least 1024 (that is, the returned DBCAREA Level value is at least 2). For a smaller DBCAREA, Maximum-LOB-bytes-per field is taken to be zero.
|Routine||Action for Maximum LOB Bytes|
|Maximum-LOB-bytes-per-field is used by...||To...|
If Maximum-LOB-bytes-per-field is zero, no additional limit is placed on the length of the field. The limit instead is the Row Limit (if specified), the limit of a message size, or other database limit.
If Maximum-LOB-bytes-per-field exceeds a database server limit, an error is issued by the server.
If both Maximum-LOB-bytes-per-row and Maximum-LOB-bytes-per-field are zero, the specified DBCAREA Return-objects-as option determines how Large-objects are returned.
Even when the database supports this feature and all limits are satisfied, the database may still elect not to override a DBCAREA Return-objects-as specification to defer Large-object data by returning a locator.