Entering content frame

 date_spec 

Syntax Rules for Describing the Data Stream

Syntax

<date_spec> ::= DATE <standard_date_mask > | DATE '<valFREE_MASK>'

valFREE_MASK

Freely definable output format

Use Y for the year, M for the month, D for the day.
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.

Use

Use this syntax rule to specify the data format of the plain text values in which DATE columns are entered and output.

This format only applies to the load or unload command in which it is specified. If no date format is specified in a command, then either the Loader default is used, or a value specified with the SET DATE command.

Using a freely definable display in a DATAEXTRACT command

CREATE TABLE d_test (col1 DATE)
//
INSERT INTO d_test VALUES (DATE)
//
DATAEXTRACT * FROM d_test
OUTFILE 'd_test.data'
DATA 'YYYY-MMM-DD'

Example for the content of the target data stream
”2003-May-15”

 

Leaving content frame