If an error occurs in route selection

If an error occurs in route selection—for example, if the sysid returned by the distributed routing program is unavailable or unknown—the routing program is invoked again.

When the routing program is re-invoked, you have a choice of actions:
  1. You can try to route the request to a different target region, by changing the sysid, and issuing a return code of ‘0' in DYRRETC.

    If this region too is unavailable, the routing program is again invoked for a route selection error. A count of the times the routing program has been invoked for routing purposes for this request is passed in field DYRCOUNT. Use this count to help you decide when to stop trying to route the request.

  2. You can tell CICS® not to continue trying to route the request, by issuing a non-zero return code in DYRRETC.