ENFORM User's Guide

Interface Procedures
Host Language Interface
058058 Tandem Computers Incorporated 6–3
Interface Procedures A host language program interfaces with ENFORM by calling the three procedures:
ENFORMSTART, ENFORMRECEIVE, and ENFORMFINISH. ENFORMSTART
initiates the query processor, ENFORMRECEIVE provides records to the host program
one at a time, and ENFORMFINISH terminates the query processor.
Each host application program interfacing with ENFORM must use: ENFORMSTART
once for each compiled query; ENFORMRECEIVE once for each record to be provided
to the host program (this is usually inside a loop); ENFORMFINISH once for each time
you complete processing with a particular query processor; and the necessary global
and local declarations.
A detailed description of each of the ENFORM procedures follows.
ENFORMSTART Procedure The ENFORMSTART procedure initiates the interface of a host program with
ENFORM. The syntax of the ENFORMSTART procedure is:
COBOL:
ENTER ENFORMSTART USING
ctlblock
,
compiled-physical-filename
,
buffer-length
,
error-number
, [
restart-flag
]
, [
param-list
]
, [
assign-list
]
, [
process-name
]
, [
cpu
]
, [
priority
]
, [
timeout
]
, [
reserved-for-expansion
]
FORTRAN:
CALL ENFORMSTART (
ctlblock
,
compiled-physical-filename
,\
buffer-length
\ ,
error-number
,[ \
restart-flag
\]
,[
param-list
]
,[
assign-list
]
,[
process-name
]
,[ \
cpu
\]
,[ \
priority
\]
,[ \
timeout
\]
,[
reserved-for-expansion
]
,\
maskword
\ )