Default and alternative time value formats vary. If using DB2 ECM, consult IBM documentation on differing formats. For OpenESQL, review the TIME and TIMEDELIM SQL compiler directive option topics for more information.
hh:mm:ss
12:34:00
01 time1 PIC X(8).
01 time2 SQL TYPE IS TIME. 01 time3 PIC X(n). 01 time4 SQL TYPE IS TIME-RECORD.
MOVE "hh:mm:ss" TO host-var. MOVE "hh.mm.ss" TO host-var. MOVE "hh:mm PM" TO host-var.
MOVE "hh:mm:ss" TO host-var. MOVE "hh.mm.ss" TO host-var. MOVE "hh:mm PM" TO host-var.
MOVE "{t 'hh:mm:ss'}" TO host-var.
MOVE hh TO host-var-hour MOVE mm TO host-var-min MOVE ss TO host-var-sec
01 time5 type System.TimeSpan.