Other LU6.2 command processing in the terminal-owning region
- If an application request has been received, DFHZXRT:
- Calls DFHXTP to unwrap the application program’s request
- Issues the DFHLUC macro call with the parameter list created in the application-owning region
- Calls DFHXTP to wrap the response to the DFHLUC macro
- Sends the response to the application-owning region.
Normally the wrapped terminal response is sent to the application-owning region with a DFHTC TYPE=(WRITE,WAIT,READ) macro. However, there are exceptions:
- If the response to the DFHLUC macro call is a request for SYNCPOINT ROLLBACK, DFHZXRT sends the wrapped terminal response with a DFHTC TYPE=WRITE macro and then issues a DFHSP TYPE=ROLLBACK command.
- If the response to the DFHLUC macro call is a request for SYNCPOINT, DFHZXRT
sends the wrapped terminal response with a DFHTC TYPE=WRITE macro and then
issues a DFHSP TYPE=PREPARE against the link.
The response to the macro is processed in the same way as when a SYNCPOINT request is received from the application, and issued to the terminal, except that the roles of the terminal and link are reversed.
- If the session to the terminal has been freed by an application command, DFHZXRT sends the wrapped terminal response with a DFHTC TYPE=(WRITE,LAST) macro.
- When the session to the application-owning region is in ‘RECEIVE’
state, normally DFHZXRT issues a DFHTC TYPE=READ to get the next request from
the application.
However, if the link between the terminal-owning and application-owning regions is LU6.2, and the response to the DFHLUC macro issued to the terminal indicates that the terminal has issued one of ISSUE_SIGNAL, ISSUE_ERROR, ISSUE_ABEND, or SYNCPOINT_ROLLBACK, DFHZXRT issues an ISSUE_SIGNAL against the link with the application-owning region to notify the application-owning region that the terminal-owning region wants to send. It then issues a series of DFHTC TYPE=READ macros until it receives the change of direction indicator.
The data is processed in the normal way when ‘SIGNAL’ is received from the terminal. In the other cases, that is, if a negative response is received from the terminal, the data from the application-owning region is purged.
After the change direction indicator is received, DFHZXRT sends the response to the application-owning region, ISSUE_SIGNAL and ISSUE_ERROR are sent using a DFHTC TYPE=(WRITE,WAIT,READ) macro, ISSUE_ABEND is sent using a DFHTC TYPE=(WRITE,LAST) macro, and SYNCPOINT_ROLLBACK is sent using a DFHTC TYPE=WRITE macro.
- If the response from the terminal was ‘ROLLBACK’, a DFHSP TYPE=ROLLBACK macro is issued.
- If a syncpoint request has been received, DFHZXRT:
- Issues a DFHLUC TYPE=ISSUE-PREPARE macro against the terminal TCTTE.
- Checks the terminal’s response:
If the terminal response indicates that a SYNCPOINT or BACKOUT request was issued, DFHSPP is called.
If the terminal response indicates that the terminal issued a SEND_ERROR request, DFHZXRT issues a DFHTC CTYPE=ISSUE_ERROR macro followed by a DFHTC TYPE=(WRITE,WAIT,READ) macro against the link session.
If the terminal response indicates that the terminal issued DEALLOCATE(ABEND), DFHZXRT issues a DFHTC CTYPE=ISSUE_ABEND macro against the link session. It then frees the link with the application-owning region and returns.
- If a syncpoint rollback request has been received, DFHZXRT issues a SYNCPOINT ROLLBACK request.
When DFHZXRT detects that EB has flowed on both the session with the terminal and the session with the application-owning region, it issues DFHTC TYPE=FREE on both and returns.