Syntax Rules for Describing the Data Stream
<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. |
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”