How Batch Statements with Parameters Are Executed
For statements that contain parameter markers (~V), dynamic parameter markers (?), or database procedure parameters, the parameter meta-data and values can be provided by calling IIapi_setDescriptor() and IIapi_putParms() after the call to IIapi_batch() for a particular statement:
After all parameter values for a statement have been provided by calling IIapi_putParms(), the next batch statement may be submitted by calling IIapi_batch() or batch results retrieved by calling IIapi_getQueryInfo().