C and C++ restrictions for error handling

If you are using C or C++ you cannot use:

  • EXEC CICS® HANDLE CONDITION
  • EXEC CICS HANDLE AID
  • EXEC CICS IGNORE CONDITION
  • EXEC CICS PUSH HANDLE
  • EXEC CICS POP HANDLE

You can use the EXEC CICS HANDLE ABEND PROGRAM command. In a C++ or C application, every EXEC CICS command is handled as if it had the NOHANDLE option specified. This means that the default system-action transaction abends that result from a condition that is occurring, but is not being handled, are not possible in a C++ or C application. Control always flows to the next instruction, and it is the responsibility of the application to test for a normal response.