Syntax Rules for Describing the Data Stream
A time stamp consists of a date value, a time value, and microseconds.
<timestamp_spec>
::= TIMESTAMP <standard_timestamp_mask
>
| TIMESTAMP '<valFREE_MASK>'
valFREE_MASK |
Freely definable output format Use
Y for the year, M for the month, D for the day, H for the hours, M for the minutes, S for the seconds, and N for the microseconds. |
You use this syntax rule to specify the data format of the plain text values in which TIMESTAMP columns are entered and output.
This format only applies to the load or unload command in which it is specified. If no time stamp format is specified in a command, then either the Loader default is used, or a value specified with the SET TIMESTAMP command.
Freely definable display in a command
CREATE TABLE ts_test
(col1 TIMESTAMP)
//
INSERT INTO ts_test VALUES (TIMESTAMP)
//
DATAEXTRACT * FROM ts_test
OUTFILE 'ts_test.data'
TIMESTAMP 'YYYY-MM-DD-HH-MM-SS-NNNNNN'
Example for the content of the
target data stream
?2003-11-15-13-14-12-987654?