The ERRET routine is given control in the issuer's primary address space.
The ERRET routine will receive control in the addressing mode of the caller of the cross memory POST, and the ERRET routine will run in a cross memory environment where home, primary, and secondary address spaces are all equal. The ERRET routine must return control to the address in register 14, unlocked and enabled.
If cross-memory post is being used, a synchronization problem arises when it becomes necessary to eliminate an ECB that is a potential target for a cross memory post request. To ensure that all outstanding cross memory post requests for the ECB have completed, the user must invoke the SPOST macro. The ECB might or might not be posted, depending on existing conditions.