Data Format
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.
For example, one supported time format is:
hh:mm:ss
An example value for this format is:
12:34:00
Host Variable Formats
-
OpenESQL and DB2 ECM
-
01 time1 PIC X(8).
- OpenESQL
-
01 time2 SQL TYPE IS TIME.
01 time3 PIC X(n).
01 time4 SQL TYPE IS TIME-RECORD.
- time1 format
-
- time2 format
-
- time3 format
- Use this format when your application moves time data to host variables using ODBC escape sequences.
Note: This format is deprecated starting with
Visual COBOL version 2.3. Instead, we strongly suggest that you use the TIME and TIMEDELIM SQL compiler directive options to avoid using ODBC escape sequences.
- time4 format
-
- OpenESQL .NET Managed Runtime
- In addition to the definitions valid for all databases and those valid for OpenESQL, the following definition is also valid for the OpenESQL .NET Managed Runtime:
01 time5 type System.TimeSpan.