Program Functions

The following are step-by-step descriptions of the overview described previously. (1) is for CRREXMP1 and (2) is for CRREXMP2.

  1. (1): DMSSSPTO to set synchronization point options
  2. (1): DMSSETAG to set the transaction tag
  3. (1): DMSOPEN the CHILDS LIST file in SFS directory .CRRDIR1
  4. (1): DMSWRITE to CHILDS LIST
  5. (1): DMSCLOSE with NOCOMMIT option to close CHILDS LIST
  6. (1): DMSOPEN the TOYSTORE ORDERS file in SFS directory .CRRDIR2
  7. (1): DMSWRITE to TOYSTORE ORDERS
  8. (1): DMSCLOSE with NOCOMMIT option to close TOYSTORE ORDERS
  9. (1): CMINIT (Initialize_Conversation) to set up the protected conversation
  10. (1): CMSSL (Set_Sync_Level) to set the sync_level for the conversation to cm_sync_point
  11. (1): CMALLC (Allocate) to allocate the protected conversation
  12. (2): CMACCP (Accept_Conversation) to accept the protected conversation
  13. (1): CMCFM (Confirm) to ensure partner has received allocation
  14. (2): CMRCV (Receive) to get confirmation request
  15. (2): CMCFMD (Confirmed) to respond to the confirmation request
  16. (1): CMSEND (Send_Data) to send the data record to the partner
  17. (1): CMPTR (Prepare_To_Receive) to enter Receive state
  18. (2): CMRCV (Receive) to receive the data record and partner's request to enter Receive state
  19. (2): CMCFMD (Confirmed) to confirm the partner's state request
  20. (2): DMSSSPTO to set synchronization point options
  21. (2): DMSSETAG to set the transaction tag
  22. (2): DMSOPEN the SANTAS SACK file in SFS directory .CRRDIR3
  23. (2): DMSWRITE to SANTAS SACK
  24. (2): DMSCLOSE with NOCOMMIT option to close SANTAS SACK
  25. (2): SRRBACK (Backout) to initiate backout processing
  26. (1): CMRCV (Receive) to receive the backout indication
  27. (1): SRRBACK (Backout) to perform backout processing
  28. (2): CMSDT (Set_Deallocate_Type) to set the deallocate_type to CM_DEALLOCATE_ABEND
  29. (2): CMDEAL (Deallocate) to deallocate the protected conversation
  30. (1): CMRCV (Receive) to receive the deallocation notification
  31. (2): CMDEAL (Deallocate) to deallocate the conversation after a successful syncpoint
  32. (2): SRRCMIT (Commit) to initiate commit processing
  33. (1): CMRCV (Receive) to receive the commit request indication
  34. (1): SRRCMIT (Commit) to perform commit processing
  35. (2): CMDEAL (Deallocate) to deallocate the conversation after a successful syncpoint
  36. (2): SRRCMIT (Commit) to initiate commit processing
  37. (1): CMRCV (Receive) to receive the commit request indication
  38. (1): SRRBACK (Backout) to respond backout to commit request
  39. (2): CMSDT (Set_Deallocate_Type) to set the deallocate_type to CM_DEALLOCATE_ABEND
  40. (2): CMDEAL (Deallocate) to deallocate the protected conversation
  41. (1): CMRCV (Receive) to receive the deallocation notification