The CHECK-COMS-INPUT-ERRORS paragraph is performed by GET-COMS-Message when a message has been received from COMS. (GET-COMS-Message is performed by the main loop routine ML-01 when the complex wait routine identifies COMS input.)
CHECK-COMS-INPUT-ERRORS checks for a subset of COMS errors. Not all the errors checked are relevant to the needs of the PROCESS-LINC-RESPONSE paragraph, but they are included to give an example of the checks that might be needed if your NOF skeleton program code is expanded. The following checks are made:
Check for COMS-IN-STATUS of 0, 92, or 99. These are already handled by GET-COMS-Message.
Check for COMS-IN-STATUS of 93, which indicates the message received is a replay, and that the previous input was aborted.
Add your own code at this point in the logic if any special processing is needed to handle this condition.
Check for COMS-IN-STATUS of 20, 100, 101, or 102. These values indicate that the station you have sent message output to has an attachment/detachment error. This also sets COMS-IN-FUNCTION-INDEX to a negative value.
Add your own code at this point in the logic if any special processing is needed to handle this condition.
Check for a negative COMS-IN-FUNCTION-INDEX value.
If -16, a message of HI is set up for the application.
A station has opened the NOF window. Since this is equivalent to opening your application window, a HI message should be sent to your application on behalf of the station. The code drops through to the SEND-TO-LINC paragraph, and the HI message is sent to your application on behalf of the station.
If -17, display the status.
A station has opened the NOF window, but has not closed a previous window. This is referred to as a resume. Add your own code if necessary, to handle this situation. For example, you might want to send a menu format request to the application on behalf of the station.
If -50 or -51 or -52 or -53, display the status.
A station has closed the NOF window. Add your own code if necessary, to handle this situation. For example, you might want to send a BYE request to the application on behalf of the station.
Otherwise, display the COMS-IN-FUNCTION-INDEX value.