17=Resolve
Use the Resolve option to force a local commit or backout of in-doubt messages held in a transmission queue.
Use the Resolve option when messages are held in-doubt by a sender or server, for example because one end of the link has terminated, and there is no prospect of it recovering. The Resolve option accepts one of two parameters: BACKOUT or COMMIT. Backout restores messages to the transmission queue, while Commit discards them.
The channel program does not try to establish a session with a partner. Instead, it determines the logical unit of work identifier (LUWID) which represents the in-doubt messages. It then issues, as requested, either:- BACKOUT to restore the messages to the transmission queue; or
- COMMIT to delete the messages from the transmission queue.
For the resolution to succeed:
- The channel must be inactive
- The channel must be in doubt
- The channel type must be sender or server
- The channel definition, local, must exist
- The queue manager must be running, local
Parent topic: Work-with-channel choices on IBM i