Entering content frame

Syntax documentation Dates Locate the document in the library structure

You 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 import or export command in which it is specified. If no date format is specified in a command, either the Loader default is used, or a value specified with the SET DATE command. You use the SET DATE command to specify the date format for all subsequent commands. In a single Loader session, this applies until a new SET command is executed.

Syntax

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

DATE <standard_date_mask>

Specification of a standardized date mask

<standard_date_mask>

Possible values: EUR | INTERNAL| ISO| JIS | USA
Default value: INTERNAL

<valFREE_MASK>

Freely definable date mask

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.

Examples

Example

EXPORT TABLE hotel.reservation
DATA OUTSTREAM FILE 'reservation.data'
DATE ISO

Standard date mask ISO is specified.

Example

IMPORT TABLE hotel.reservation
DATA INSTREAM FILE 'reservation.data'
DATE ′YYYY-MMM-DD′

Example of the content of the target data stream
"100","3000","80","single","2004-Nov-13","2004-Nov-15"

Mask YYYY-MMM-DD is specified for dates.

Explanation

DATE <standard_date_mask>

You use the standard_date_mask to specify the format for plain text values in which DATE columns are entered and displayed.

'YYYY'

Four-digit year format

'MM'

Two-digit month format (01-12)

'DD'

Two-digit day format (01-31)

 

Format

General Format

Example

EUR

'DD.MM.YYYY'

'23.01.2005'

INTERNAL

'YYYYMMDD'

'20050123'

ISO/JIS

'YYYY-MM-DD'

'2005-01-23'

USA

'MM/DD/YYYY'

'01/23/2005'

Day and month entries must have two digits. In all formats except INTERNAL, the year must have two or four digits. In the INTERNAL format, the year must have four digits.

DATE '<valFREE_MASK>'

You use the free mask valFREEMASK to specify the format for plain text values in which DATE columns are entered and displayed.

 

Leaving content frame