Entering content frame

Background documentation Date Specifications Locate the document in its SAP 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 load or unload 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>'

<standard_date_mask> ::= EUR | INTERNAL | ISO | JIS | USA

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.

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.

The default value in the Loader is INTERNAL.

'YYYY'

Year (four digits)

'MM'

Month (two digits, 01-12)

'DD'

Day (two digits, 01-31)

 

 

Format

General Form

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.

Example

DATAEXTRACT cno, arrival from reservation
OUTSTREAM 'customer_arrival.data'
DATE ISO

Example of the content of the target data stream:
?100?,?2004-11-13?

DATE '<valFREE_MASK>'

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

Example

DATAEXTRACT * from reservation
OUTSTREAM '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"

 

Leaving content frame