30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 14 on page 112 outlines the conversion possibilities for the date, time, and<br />

timestamp.<br />

Table 14. Conversion Table<br />

Allowable Field<br />

Allowable<br />

Field<br />

Data types Forms<br />

Length Direction Data Type Formats Length<br />

Date Any date format 6, 8, or 10 Date Any 6, 8, or 10<br />

Zoned (MMDDYY) 6,0 Date Any 6, 8, or 10<br />

Zoned (DDMMYY) 6,0 Date Any 6, 8, or 10<br />

Zoned (YYMMDD) 6,0 Date Any 6, 8, or 10<br />

Zoned (YYDDD) 5,0 Date Any 6, 8, or 10<br />

Character (MMdDDdYY) 6 min Date Any 6, 8, or 10<br />

Character (DDdMMdYY) 6 min Date Any 6, 8, or 10<br />

Character (YYdMMdDD) 6 min Date Any 6, 8, or 10<br />

Character (YYdDDD) 6 min Date Any 6, 8, or 10<br />

Character (*USA) 6 min ----> Date Any 6, 8, or 10<br />

Character (*ISO) 6 min ----> Date Any 6, 8, or 10<br />

Character (*EUR) 6 min ----> Date Any 6, 8, or 10<br />

Character (*JIS) 6 min ----> Date Any 6, 8, or 10<br />

Character (YYYYDDD) 6 min ----> Date Any 6, 8, or 10<br />

Time Any time format 8 Time Any 8<br />

Zoned (HHMMSS) 6,0 Time Any 8<br />

Character (HHtMMtSS) 4 min ----> Time Any 8<br />

Character (*USA) 4 min ----> Time Any 8<br />

Character (*ISO) 4 min ----> Time Any 8<br />

Character (*EUR) 4 min ----> Time Any 8<br />

Character (*JIS) 4 min ----> Time Any 8<br />

Character (HHtMMtSS) 8 min Timestamp SAA 26<br />

Character (YYYYMMDDHHMMSS) 14 min Timestamp SAA 26<br />

Note: In the format columns,<br />

d = date separator value<br />

t = time separator value<br />

any = job formats or SAA formats<br />

In the allowable field-length column, min means the specified length is the minimum required for a conversion<br />

attempt. Conversion errors may still occur if the length is not long enough for the desired or assumed format. Refer<br />

to the DDS Reference for more information on the date, time, and timestamp data types and keywords.<br />

112 <strong>File</strong> <strong>Management</strong> V4R5<br />

When converting a character field to a date, time, or timestamp field;<br />

FMTOPT(*MAP) is specified; and the corresponding from- and to-field names<br />

match; an attempt is made to determine what similar date form the character field<br />

is in. The following applies:<br />

v For converting a character field to a date field, the minimum length required for<br />

the character field is 6. The system first determines if the character field data is<br />

in the same format and has the same separator as specified in the current job<br />

under which the copy command is running. This may be *MDY, *DMY, *YMD,<br />

or *JUL for the format and slash (/), hyphen (-), period (.), comma (,), or blank (<br />

) for the separator. If the character field is not in the current job specified format<br />

and separator form, it determines if it is in one of the SAA formats (*ISO, *USA,<br />

*EUR, or *JIS), or if it is in a YYYYDDD form (no separator). If the system

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!