Download User Manual

Transcript
Date Command [DA]
Specify a specific date-format for all dates.
DATE NONE | date-format [ "separator" ]
INVALID ASTERISKS | NULL | "string"
(Default: yyyymmdd Invalid Asterisks)
Use the Date command to specify an output format for dates. Use the Invalid option
to specify how invalid dates should be formatted in the output file. The advantage of
the None option is that it formats all dates, whether they are valid or not. If you
select a date-format, the default Invalid option replaces invalid dates with asterisks
"*".
STExport must know which fields are dates and the format of each date. Use
Suprtool's Item command and Output,Link option to specify the date information.
Date Format
The date-format can be one of:
ccyymmdd
yyyymmdd
ddmmyyyy
mmddyyyy
yymmdd
ddmmyy
mmddyy
aammdd
STExport converts each date field from its internal date format into the format that
you specify.
Separator Character
By default, STExport formats all dates without a separator between the day, month,
and year. Specify your own separator by enclosing it inside quotes after you specify
the date format. The separator must be one character long. For example, to specify
dates in ddmmyyyy format with a slash separator, use
$date ddmmyyyy "/"
To specify dates in yymmdd format with a dash separator, use
$date yymmdd "-"
Oracle Dates
Oracle dates contain both the date and the time. STExport formats the date, but not
the time. If you specify Date None, Oracle dates will be treated as byte-type fields.
Since Oracle dates actually contain binary data, the output is often unusable by other
applications, unless you specify a specific date-format.
Suprtool/Open 5.6 User Manual
STExport Commands • 243