Handling errors

You must write your RSP to handle the errors it receives from Open ServerConnect, MainframeConnect, and, optionally, from DB2 or any other database it accesses.

Errors are recorded in the SPRC field of the SPAREA. Your RSP code must check the SPRC field for errors after issuing any RSP command.

See Mainframe Connect Client Option and Server Option Messages and Codes for information on Open ServerConnect error messages and actions. See Mainframe Connect DB2 UDB Option for CICS Installation and Administration Guide for information on MainframeConnect error messages and actions. Also see Chapter 6, “Troubleshooting” for more information on MainframeConnect errors.