ADAEWRET (Return Work Unit) Action

The SPM drives the resource adapter for this action because the application called the DMSRETWU (Return Work Unit ID) CSL routine, indicating that the application has completed all work on the work unit. For more information about DMSRETWU, see the z/VM: CMS Callable Services Reference.

CMS return-work-unit processing for CRR includes:
  • Closing all work unit SFS files and directories
  • Committing the work unit.
Table 1 lists (in order of increasing severity) the response codes your resource adapter can return for an ADAEWRET action call, and the resulting action taken by the SPM for each response.
Table 1. Resource Adapter Exit Routine Response Codes for the ADAEWRET (Return Work Unit) Sync Point Action Call
Response Code Macro Value Resource's Reason for Issuing This Response Action Taken by the SPM
ADAOK 100 Default response. Work unit is ended.
ADARF 8 Resource no longer available due to session outage, deallocate (abend), or failure of the resource manager. Work unit is ended.
ADAAERR 212 Resource no longer available due to failure of the adapter. Work unit is ended.