User guide

Writing ENFORM Servers
ENFORM Servers
7–10 058058 Tandem Computers Incorporated
INITIATE-INPUT-REPLY Message
The ENFORM server returns this message to the query processor after reading an
INITIATE-INPUT-REQUEST message. The message format and DDL description for
the INITIATE-INPUT-REPLY message are shown in Figure 7-4.
Figure 7-4. Message Format and DDL Description for the INITIATE-INPUT-REPLY Message
DEF initiate-input-reply-def .
05 ENFORM-server-header-def TYPE * .
05 max-records-in-file TYPE BINARY 32 .
! This number is used by the QP when it has to make decisions
! based upon the size of a file. It should be the max # of
! records that may be sent by the process .
05 control-block-wz TYPE BINARY 16 .
! # of words that will be allocated for control block on
! record-input-request and -reply messages. If <=0, no space
! will be allocated.
END
0: REPLY-CODE
1: APPLICATION-CODE
2: FUNCTION-CODE
3: TRANS-CODE
4-11: TERM-ID,LOG-REQUEST (unused)
12: ERROR-CODE
13-24: FILE-NAME
25: FILE-ERROR
HEADER
26-27: MAX-RECORDS-IN-FILE
28: CONTROL-BLOCK-WZ
RECORD-INPUT-REQUEST Message
The query processor sends this message to the ENFORM server to ask for a data
record. The message format and DDL description for the RECORD-INPUT-REQUEST
message are shown in Figure 7-5.