cphill7292
Programmer
If I define a field as PIC S9(18)COMP and try to include that in my embeded SQL I get the following error from the precompiler.
PCC-S-0026: Invalid host variable "CFP-F3"
My database is defined as:
Name Null? Type
-------- -------- ----------------------------
F1 VARCHAR2(1)
F2 VARCHAR2(8)
F3 NUMBER(18)
The record layout in my program is:
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
01 CFP-REC.
03 CFP-F1 PIC X(01).
03 CFP-F2 PIC X(08).
03 CFP-F3 PIC S9(18) COMP.
EXEC SQL END DECLARE SECTION END-EXEC.
So the question is how do I define the column in the database to be able to store this field?
Cheers
PCC-S-0026: Invalid host variable "CFP-F3"
My database is defined as:
Name Null? Type
-------- -------- ----------------------------
F1 VARCHAR2(1)
F2 VARCHAR2(8)
F3 NUMBER(18)
The record layout in my program is:
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
01 CFP-REC.
03 CFP-F1 PIC X(01).
03 CFP-F2 PIC X(08).
03 CFP-F3 PIC S9(18) COMP.
EXEC SQL END DECLARE SECTION END-EXEC.
So the question is how do I define the column in the database to be able to store this field?
Cheers