SQL/MP Messages Manual

Preprocessor Messages (11000 to 11999)
HP NonStop SQL/MP Messages Manual427720-006
13-9
SQL 11030
Cause. The SQLSA declaration specified was in a section where it is not permitted.
Effect. SQLSA is not declared.
Recovery. Include the SQLSA directive in one of the allowed sections. For COBOL
programs, the INCLUDE SQLSA directive must be only in the Working-Storage
Section, Extended-Storage Section, or Linkage Section. This directive cannot be
between EXEC SQL BEGIN DECLARE SECTION END-EXEC and EXEC SQL END
DECLARE SECTION END-EXEC.
For C and Pascal programs, the INCLUDE SQLSA directive must be only in an area
where data declarations are allowed.
SQL 11031
This message is displayed when the COBOL85 program with embedded SQL is
preprocessed using SQLCOBOL:
This message is displayed when the COBOL85, NMCOBOL, C, and TAL programs
with embedded SQL are preprocessed using SCI:
Cause. A DECLARE CURSOR statement has been placed within a Declare Section.
Effect. A warning is generated in the host compiler output listing, and program
compilation continues.
Recovery. Only host variable declarations should be placed within a Declare Section.
Move the DECLARE CURSOR statement out of the Declare Section.
11030 SQLSA declaration is not permitted in this section of
the program.
11031 DECLARE CURSOR statement is placed within a Declare
Section.
11031 CURSOR delcaration should not be placed in a BEGIN
DECLARE SECTION and END DECLARE SECTION.