DB2 z/OS Load Utility Support für zusätzliche DATE, TIME~STAMP Formate
Gut Ding will Weile haben!
Mit DB2 12 for z/OS werden zsätzliche, Anwender-definierte DATE, TIME, und TIMESTAMP Formate unterstützt.
New LOAD feature for LOAD DATE, TIME and TIMESTAMP using predefined formats
Utility Guide and Reference, LOAD utility syntax is changed, to add new date, time, and timestamp format options to DATE, TIME, and TIMESTAMP EXTERNAL:
+-DATE--EXTERNAL--+---------------------+-------------------+ | '-(-+-length------+-)-' | | '-date-format-' | +-TIME--EXTERNAL--+---------------------+-------------------+ | '-(-+-length------+-)-' | | '-time-format-' | +-TIMESTAMP--EXTERNAL--+--------------------------+---------+ | '-(-+-length-----------+-)-' | | '-timestamp-format-' | DATE EXTERNAL Specifies a character string representation of a date. You can specify a length or a specific date format. (length) The length, if unspecified, is the specified length on the LOCAL DATA LENGTH installation option, or, if none was provided, the default is 10 bytes. If you specify a length, it must be within the range of 8 - 254 bytes. If a date format is not specified, dates can be in any of the following formats. You can omit leading zeros for month and day. You can include trailing blanks, but no leading blanks are allowed.
- dd.mm.yyyy
- mm/dd/yyyy
- yyyy-mm-dd
- Any local format that was defined when DB2 was installed
- If the format includes separators, the separator can be any single-byte character that can be converted to a single-byte EBCDIC character.
- If a two-digit year is specified, it is expanded to a four-digit year. If the two-digit year is less than the sum of the two-digit current year plus 50, then the current century is used in the four-digit year. For example, assume that the current year is 2017. If the two-digit year is 67, 1967 is used.
However, if the two-digit year is 66, 2066 is used.
- hh.mm.ss
- hh:mm AM
- hh:mm PM
- hh:mm:ss
- Any local format that was defined when DB2 was installed
- If the format includes separators, the separator can be any single-byte character that can be converted to a single-byte EBCDIC character./li>
- yyyy-mm-dd-hh.mm.ss
- yyyy-mm-dd-hh.mm.ss.nnnnnn
- yyyy-mm-dd hh:mm:ss.nnnnnn
- If the format includes separators, the separator can be any single-byte character that can be converted to a single-byte EBCDIC character.
- If a two-digit year is specified, it is expanded to a four-digit year. If the two-digit year is less than the sum of the two-digit current year plus 50, then the current century is used in the four-digit year. For example, assume that the current year is 2017. If the two-digit year is 67, 1967 is used. However, if the two-digit year is 66, 2066 is used.



Mehr Informartionen gibt’s im IBM Suppor Record PI69064.
Comments
Comments are closed.