yyyy-mm-dd hh:mm:ss[.f[f[...]]]where the number of fractional digits is driver-defined. For example:
1994-05-24 12:34:00.000
01 timestamp1 PIC X(29). 01 timestamp2 SQL TYPE IS TIMESTAMP.
The timestamp2 format uses the TIMESTAMP SQL TYPE.
01 timestamp3 SQL TYPE IS TIMESTAMP-RECORD.
{t 'hh:mm:ss'}
{ts 'yyyy-mm-dd
hh:mm:ss[.f[f[...]]]'
$set sql(dbman=odbc, detectdate)
01 timestamp1 pic x(26).
. . .
move "{ts'1965-11-02 12:08:30'}" to timestamp1
exec sql
insert into emp (TransDate) values (:timestamp1)
end-exec
01 timestamp2 SQL TYPE IS TIMESTAMP.
. . .
move "1965-11-02 08:12:56" to timestamp2
exec sql
insert into emp (TransDate) values (:timestamp2)
end-exec
01 timestamp4 type System.DateTime.
The TIMESTAMP data type has a maximum length of 26 characters.