3. Embedded QUEL for COBOL : COBOL Variables and Data Types : Data Types
 
Share this page                  
Data Types
EQUEL/COBOL supports a subset of the COBOL data types. The following table maps the COBOL data types to their corresponding Ingres types. Note that the COBOL data type is determined by its category, picture and usage.
COBOL Type
Ingres Type
Category
PICTURE
USAGE
ALPHABETIC
any
DISPLAY
character
ALPHANUMERIC
any
DISPLAY
character
ALPHANUMERIC EDITED
any
DISPLAY
character
NUMERIC
9(p) where p <= 10
COMP, DISPLAY
integer
NUMERIC
9(p)V9(s) where p+s <= 9
COMP, DISPLAY
float
NUMERIC
9(p) where p <= 10
COMP-3
integer
NUMERIC
 
INDEX
integer
NUMERIC EDITED
any
DISPLAY
integer,
float
VMS:
COBOL Type
Ingres Type
Category
PICTURE
USAGE
NUMERIC
COMP-1
float
NUMERIC
COMP-2
float 
COMP is an abbreviation for COMPUTATIONAL. You can use either form. Note that POINTER data items are not supported. The following sections describe the various data categories and the manner in which EQUEL interacts with them.