Using RESCHECK and GETMSG

You should always include RESCHECK and GETMSG commands after the REQEXEC to ensure that you receive all error messages generated during processing. RESCHECK determines whether or not there are messages and result rows (OPENPIPE and GETPIPE retrieve the result rows), and GETMSG retrieves the messages.

For more information on the CSA commands, their formats and results, see Appendix A, “CSA Commands.”