SQL/MX 3.1 Messages Manual (H06.23+, J06.12+)
SQLC and SQLCO Preprocessor Messages (13000
through 13999)
HP NonStop SQL/MX Release 3.1 Messages Manual—663849-001
14-25
SQL 13508
Cause. You did not enter the keyword or character that NonStop SQL/MX required.
When the preprocessor is processing the code within a control block such as IF,
WHILE, DO, or is at the end of one, it looks for the keyword that ends that block and
then a semicolon, and issues this message if that keyword or character is not found:
For example:
In an IF or WHILE block:
*** ERROR[13508] Expecting END, found EXEC.
When IF is not followed by THEN:
*** ERROR[13508] Expecting THEN, found ;.
When WHILE is not followed by DO:
*** ERROR[13508] Expecting DO, found ;.
When the keyword END is not followed by a semicolon while processing an IF or
WHILE block:
*** ERROR[13508] Expecting ;, found EXEC.
Effect. The operation fails.
Recovery. Correct the syntax and resubmit.
SQL 13509
Cause. You did not enter the keyword that NonStop SQL/MX was expecting. When
the preprocessor encounters certain keywords, it expects them to be followed by other
specific keywords. For example:
This error is issued if the preprocessor does not find the keyword DIVISION
immediately after any of these keywords:
IDENTIFICATION
ENVIRONMENT
DATA
WORKING-STORAGE
PROCEDURE
***ERROR[13509] Expecting DIVISION after DATA, found EXEC.
13508 Expecting keyword, found keyword.
13509 Expecting keyword1 after keyword2, found keyword3.










