Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)
Procedure Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual—426750-001
6-62
RECONNECT MODEM Statement
2. When the unsolicited message arrives, the RECEIVE UNSOLICITED MESSAGE
statement moves the message to R-MSG-1 or R-MSG-2 depending on the receive
code value. The statement also moves a number 1 or 2 into the TERMINATION-
STATUS register depending on the position of the receive code in the statement. If
there are no errors and the RECEIVE UNSOLICITED MESSAGE statement does
not time out, the special register TERMINATION-STATUS is set as follows:
RECEIVE CODE TERMINATION-STATUS
RC-1 1
RC-2 2
3. If the RECEIVE UNSOLICITED MESSAGE statement times out or there is an
error, the statement sets the TERMINATION-STATUS and TERMINATION-
SUBSTATUS registers accordingly and performs the procedure ERROR-
HANDLER.
Refer to Table 6-5
for an explanation of the error numbers contained in
TERMINATION-STATUS.
RECONNECT MODEM Statement
The RECONNECT MODEM statement gives a SCREEN COBOL program control of
the connection to a Pathway/iTS terminal or intelligent device across a dial-in switched
line (a standard communication line used by the public telephone system). Pathway/iTS
does not support a dial-out capability over a switched line.
If the connection to the Pathway/iTS terminal or to the intelligent device is over a
switched line, the RECONNECT MODEM statement breaks the connection with the
SCREEN COBOL program and causes the program to wait for another incoming call.
After the next incoming call completes connection to the terminal or device, the
SCREEN COBOL program resumes execution at the next program instruction.
If a RECONNECT MODEM statement is executed but the Pathway/iTS terminal or
device is not connected over a switched line, the program resumes immediately at the
next program instruction.
After a RECONNECT MODEM statement is executed, all terminal screen definitions
are lost. A DISPLAY BASE statement must precede the next screen operation.
RECONNECT MODEM lets a SCREEN COBOL program perform the following
operations for Pathway/iTS terminals or intelligent devices connected over switched
lines:
•
Disconnect the terminal or device at the end of a session (the caller logs off)
•
Recover from a modem error (an accidental disconnection), and wait for the next
terminal or device to call
The SCREEN COBOL program must be in a consistent state when accessed by an
incoming call. Initialize local variables and complete previous transactions before
executing RECONNECT MODEM.
RECONNECT MODEM