ENFORM User's Guide
Writing ENFORM Servers
ENFORM Servers
7–8 058058 Tandem Computers Incorporated
The message header is used to pass the following information between the query
processor and an ENFORM server:
Reply code—0 indicates successful operation and 1 indicates an error.
Application code—S1 indicates simple sequential file simulation.
Note The application code, S1, identifies the message formats and protocol for the query processor and
ENFORM server communication. This application code is passed in the header of every message to and
from the query processor and a server. A new value for this field will be added when the protocol or
message format changes to allow ENFORM to support multiple protocols.
Function code—DA indicates data input.
Transaction code —SR indicates an initiate input request or reply. RR indicates a
record input request or reply. TR indicates a terminate input request or reply.
Error code—Indicates one of the following internal error messages is returned
from an ENFORM server to the query processor:
0 no error
1 end-of-file (only for RECORD-INPUT-REPLY message)
29 missing parameter or invalid message format or any other server detected
error (can be returned by any reply message)
Filename—If an error code is other than zero and this field is not all blanks, this
file name is printed in the error message instead of the server’s name.
File error—If supplied, an error number is printed in the error message instead of
the GUARDIAN file error number. If filename is supplied, the file error must also
be supplied. If filename is not supplied, this field is ignored.
Note The DDL source file named ENFORMSV is supplied with the ENFORM product and can be used to
generate message definitions for COBOL, FORTRAN, or TAL programs. The DDL source contains all of
the message definitions necessary for a dialogue between the query processor and your ENFORM
server.
ENFORM Server and Query
Processor Messages
This section presents the message format and the DDL description for the following
messages:
INITIATE-INPUT-REQUEST
INITIATE-INPUT-REPLY
RECORD-INPUT-REQUEST
RECORD-INPUT-REPLY
TERMINATE-INPUT-REQUEST
TERMINATE-INPUT-REPLY