SQL | COBOL |
---|---|
BLOB | PIC X(n) and ESQL$BLOB routine |
CHAR (n) | PIC X(n) |
CLOB | PIC X(n) |
DATE / TIME | PIC X(n) and the proper date conversion function, that varies depending on the database |
DECIMAL(n,d) | PIC S9(n-d)v9(d) |
NCHAR(n) | PIC N(n) |
NCLOB | PIC N(n) |
NUMERIC(n) | PIC S9(n) |
NVARCHAR(n) | PIC N(n) |
VARCHAR (n) | PIC X(n) or group item as described in Mapping a VARCHAR field to a COBOL group data item |