Executing a Datacom SQL query (such as via DBSQLPR or Dataquery) fails with an error indicating the PLAN OPTION CBSIO has been exceeded. This occurs when the number of data records inspected or rejected exceeds the limits.
In DBSQLPR the error is:
SQLCODE = -137, SQLSTATE=57S03, DB RETURN CODE = 91(112)
MESSAGE = PLAN OPTION CBSIO EXCEEDED
In Dataquery the error is:
DQ093E - PLAN OPTION CBSIO EXCEEDED
Release: 15.1
Internal return code 112 indicates SELECT ENDED, EXCESSIVE FAILURES. During the execution of a SELFR command, the number of data records rejected exceeded the limit set by the maxstio parameter in the CBS MUF startup option.
To resolve this issue, increase the maxstio limit or set it to 0 for no limit. Use one of the following methods:
Update the limit temporarily without restarting the MUF by issuing the following console command:
Alternatively, use the COMM function in DBUTLTY:
Update the 4th positional parameter of the CBS startup option in the MUF configuration:
(The 0 in the 4th position represents maxstio)