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.

FLD TYPE ASSUMED<br />

FORM FOR<br />

DATFMT &<br />

LENGTH 1<br />

CURRENT<br />

JOB DATFMT<br />

NUMERIC<br />

FIELD<br />

LENGTH<br />

COPY DATA TYPE FORMAT<br />

PACKED (YYMM) *YMD 4,0 5,0 DATE (any)<br />

PACKED (YYDDD) *JUL 5,0 DATE (any)<br />

PACKED (MMDDYY) *MDY 6,0 DATE (any)<br />

PACKED (DDMMYY) *DMY 6,0 DATE (any)<br />

PACKED (YYMMDD) *YMD 6,0 DATE (any)<br />

PACKED (CMMDDYY) *MDY 7,0 DATE (any)<br />

PACKED (CDDMMYY *DMY 7,0 DATE (any)<br />

PACKED (CYYMMDD) *YMD 7,0 DATE (any)<br />

PACKED (YYYYDDD) *JUL 7,0 DATE (any)<br />

PACKED (MMDDYYYY) *MDY 8,0 9,0 DATE (any)<br />

PACKED (DDMMYYYY) *DMY 8,0 9,0 DATE (any)<br />

PACKED<br />

Notes:<br />

(YYYYMMDD) *YMD 8,0 9,0 DATE (any)<br />

1<br />

2<br />

When copying from a PACKED or ZONED to a DATE, the assumed form is the form the copy will expect<br />

the data to be in. When copying from DATE to a PACKED or ZONED field the assumed form is the form<br />

copy will attempt to convert the data to.<br />

These conversions are already supported.<br />

When converting/copying a ZONED field (with no DATFMT) from/to a DATE<br />

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

matching the system assumes the ZONED field is to be in a form determined from<br />

the current job DATFMT value and the ZONED field length (see table for<br />

specifics).<br />

Similarly, when converting/copying a PACKED field (with no DATFMT) from/to<br />

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

names match, the system assumes the PACKED field is to be in a form determined<br />

from the current job DATFMT value and the PACKED field length (again, see table<br />

for specifics).<br />

For the new DATFMTs that have a ’century guard digit’, the system allows the<br />

values 0-9. 0 is for the year range 1900 through 1999, 1 is for 2000 through 2099, 2<br />

is for 210 through 2199, and so forth, up to 9 for 2800 through 2899. The formats<br />

allowing ’century guard digit’ are *CDMY, *CMDY, and *CYMD.<br />

For the new DATFMTs that have no ’day’ portion, *MY, *YM, *MYY, and *YYM,<br />

the day is assumed to be the first day of the month. For conversions to one of<br />

these DATFMTs from a DATFMT that has a ’day’ portion, the ’day’ value is<br />

removed.<br />

For conversions from the no ’day’ DATFMT to a DATFMT having a day portion,<br />

the ’day’ value becomes the first day of the month. For example, the *YYMD value<br />

’19971231’ becomes ’199712’ when converted to *YYM. When converted back,<br />

’199712’ becomes ’19971201’.<br />

Chapter 4. Copying files 133

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

Saved successfully!

Ooh no, something went wrong!