Set the OPTMSG environment variable
The OPTMSG environment variable enables the optimized message transfers for all SQL statements in the application.
- 1
- This value enables optimized message transfers, implementing the feature for any connection that is after.
- 0
- This value disables optimized message transfers. (Default)
The default value of the OPTMSG environment
variable is 0
. Setting OPTMSG to 0
explicitly
disables message chaining. You might want to disable optimized message
transfers for statements that require immediate replies, or for debugging
purposes.
To enable optimized message transfers, you must set OPTMSG before you start the application.
putenv("OPTMSG=1");
ifx_putenv("OPTMSG=1");
When you set OPTMSG within an application, you can activate or deactivate optimized message transfers for each connection or within each thread. To enable optimized message transfers, you must set OPTMSG before you establish a connection.