User guide

Interface Procedures
Host Language Interface
058058 Tandem Computers Incorporated 6–9
ENFORMRECEIVE Error Messages
If an error occurs during the execution of the ENFORMRECEIVE Procedure, the
number of the error is returned in error-number. Any of these error conditions
terminate the ENFORM program. If the query processor is dedicated, it is deleted.
Table 6-2 lists the error message for each of the possible error numbers. Error numbers
with asterisks can have additional information returned for them in the buffer and are
included in Table 6-3.
Table 6-2. ENFORMRECEIVE Error Messages
Number Messages
1 Query processor received a message out of sequence.
3 * Error occurred during file system READ.
4 * Error occurred during file system WRITE.
5 * Error occurred during file system POSITION or KEYPOSITION.
6 Error occurred during file system CONTROL.
7 * Error occurred during SORT.
8 * Error occurred during file system OPEN.
9 Error occurred during file CREATE.
10 * Strategy exceeded the value of the @COST-TOLERANCE option variable.
11 An attempt was made to divide by zero.
12 * Query contains an illegal combination of links.
13 * Physical file type does not match DDL.
14 Read limit exceeded value of the @READS option variable.
23 Ctlblock was modified by the host application program since last call to ENFORM.
25* There was a failure related to the use of an ENFORM server (process file).
Additional Information for ENFORMRECEIVE Error Messages
Some of the ENFORMRECEIVE errors (those indicated by an asterisk in Table 6-2)
have additional information written to the receiving buffer specified by the buffer
parameter. The buffer-length parameter for ENFORMSTART specifies the number of
bytes of error information written to buffer. The additional error message has a
maximum length of 30 bytes. If buffer-length is less than 30 bytes, the error information
is truncated to whatever length was specified in buffer-length. The additional error
messages are described in Table 6-3.