SQL/MX 3.2 Messages Manual (H06.25+, J06.14+)

SQLC and SQLCO Preprocessor Messages (13000
through 13999)
HP NonStop SQL/MX Release 3.2 Messages Manual691121-001
14-26
Effect. The operation fails.
Recovery. Correct the syntax and resubmit.
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:
13508 Expecting keyword, found keyword.
13509 Expecting keyword1 after keyword2, found keyword3.