C data types and EGL primitive types

.

The following table shows the mapping between C data types, I4GL data types, and EGL primitive types.

C data types Equivalent I4GL data type Equivalent EGL primitive type
char CHAR or CHARACTER UNICODE(1)
char NCHAR UNICODE(size)
char NVARCHAR STRING
char VARCHAR STRING
int INT or INTEGER INT
short SMALLINT SMALLINT
ifx_int8_t BIGINT BIGINT
dec_t DEC or DECIMAL(p,s,) or NUMERIC(p) DECIMAL(p)
dec_t MONEY MONEY
double FLOAT FLOAT
float SMALLFLOAT SMALLFLOAT
loc_t TEXT CLOB
loc_t BYTE BLOB
int DATE DATE
dtime_t DATETIME TIMESTAMP
intvl_t INTERVAL INTERVAL

Related reference
BIN and the integer types
BLOB
CLOB
DATE
DECIMAL
FLOAT
INTERVAL
Invoking a C Function from an EGL Program
MBCHAR
MONEY
NUM
Primitive types
SMALLFLOAT
TIME
TIMESTAMP

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.