In a typical non-terminal message handler, you will process a request
or response, with or without changing it, and pass it on to the next message
handler.
- Return the message to the pipeline - changed or unchanged - in
the appropriate container.
- If the message is a request and you have changed it, return it in
container DFHREQUEST
- If the message is a response and you have changed it, put it in container
DFHRESPONSE
- If you have not changed the message, it is already in the appropriate
container
- If the message is a request, delete container DFHRESPONSE. When a message handler is invoked for a request, containers DFHREQUEST
and DFHRESPONSE are passed to the program; DFHRESPONSE has a length of zero.
However, it is an error to return both DFHREQUEST and DFHRESPONSE.
The message is passed to the next message handler on the pipeline.