%DTTM meta-SQL element
Syntax
%DTTM(date, time)
Description
The %DTTM meta-SQL function combines the database date in the date value with the database time in the time value and returns a database timestamp value.
Note:
For Microsoft SQL Server and DB2 databases, do not use null characters for the time argument. You can use default values such as 00.00.00.000000.
Note:
This meta-SQL function is not implemented for COBOL.
Example
INSERT INTO TABLE1 (TIMESTAMP) SELECT %DTTM(DATE,TIME) FROM TABLE2
Related Topics