If your CSA retrieves data, you must open a DB2 format data pipe to Open ClientConnect. (The CSA data pipe can be used only for input.) See Appendix B, “CLIENTC2 Sample CSA” for sample code.
If your CSA receives data from an input pipe, you must
also read the address of a SQL Descriptor Area (SQLDA) definition
from the SPAREA. The SQLDA is a standard data structure that describes
the content of the transmitted data records and handles much of
the data definition logic. Open ClientConnect places the SQLDA address
in the SPAREA. See Appendix F, “The SQLDA” for
more information.