Entering content frame

 timestamp_spec 

Syntax Rules for Describing the Data Stream

A time stamp consists of a date value, a time value, and microseconds.

Syntax

<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.
The year must have two or four characters, days must have two characters, and months must have two or three characters. If you enter three characters for the month, that is
MMM, the name of the month is displayed as the standard English abbreviation, for example, Oct for October.
Minutes and seconds must have two digits. Hours must have two or four digits. For microseconds, you can choose any number of digits from 0 to 6.

Use

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?

 

Leaving content frame