An application calls cs_diag to initialize inline CS-Library message handling for a context.
An application that is retrieving messages into SQLCA, SQLCODE, or SQLSTATE must set the CS-Library property CS_EXTRA_INF to CS_TRUE.
For information on the inline method of handling CS-Library messages, see the reference page for cs_diag in Chapter 2, “CS-Library Routines.”