Pathway/iTS TCP and Terminal Programming Guide
Programming for Intelligent Devices
Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide—426751-001
6-16
FIELD STATUS Processing
The following SEND MESSAGE statement shows the YIELDS clauses associated with 
the input messages:
SEND MESSAGE MSG-3-OUT-M-1
 REPLY CODE FIELD IS WS-MSG-4-IN-FROM-MSG-4-IN-CODE
 CODE 1 YIELDS MSG-3-IN
 CODE 2 YIELDS MSG-4-IN
 CODE 3 YIELDS MSG-3-IN
 CODE 4 YIELDS MSG-4-IN
 ON ERROR PERFORM IDS-SERVER-SEND-ERROR.
The following PERFORM statement shows how to use TERMINATION- SUBSTATUS 
to decide which input message template to process:
PERFORM ONE OF
 PROC-MSG-3-IN-EDIT-STATUS
 PROC-MSG-4-IN-EDIT-STATUS
 PROC-MSG-3-IN-EDIT-STATUS
 PROC-MSG-4-IN-EDIT-STATUS
 DEPENDING ON TERMINATION-SUBSTATUS.
The following table shows the input message that correlates with TERMINATION-
SUBSTATUS:
Message Template Output Case
Because only one message template can be specified on output, you know which set of 
FIELD STATUS data items to test.
Recommended Format of FIELD STATUS Item 
The recommended format of the FIELD STATUS item is:
02 FIELD-STATUS-AREA.
 03 SHADOW-INFO PIC 9(4) COMP.
 03 FIELD-ERROR PIC 9(4) COMP.
This format, although not required by the compiler, allows for easy processing of the 
FIELD STATUS information. The SHADOW information is the same as that within the 
Screen Section. The FIELD-ERROR area allows the TCP to report specific errors that 
relate to this individual Message Section field.
Message Template TERMINATION-SUBSTATUS
YIELDS MSG-3-IN 1
YIELDS MSG-4-IN 2
YIELDS MSG-3-IN 3
YIELDS MSG-4-IN 4










