Default and alternative date value formats vary. If using DB2 ECM, consult IBM documentation on differing formats. For OpenESQL, review the DATE and DATEDELIM SQL compiler directive option topics for more information.
yyyy-mm-dd
1994-05-24
01 date1 PIC X(10).
01 date2 SQL TYPE IS DATE. 01 date3 SQL TYPE IS DATE-RECORD. 01 date4 PIC X(n).
MOVE "yyyy-mm-dd" TO host-var.
MOVE "yyyy-mm-dd" TO host-var.
MOVE "{d 'yyyy-mm-dd'}" TO host-var.
MOVE yyyy TO host-var-year MOVE mm TO host-var-month MOVE dd to host-var-day