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.

Restrictions for Year 2000 support<br />

Copying complex objects<br />

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

Record selection (FROMKEY, TOKEY, INCCHAR, and INCREL parameters) for<br />

CPY is not enhanced for the PACKED, ZONED, and CHARACTER data types<br />

having the DATFMT keyword. They are treated as their actual field type indicates,<br />

and a DATFMT specified on them is ignored for these parameters.<br />

Likewise, when copying a logical file with PACKED, ZONED, or CHARACTER<br />

fields having the DATFMT specified to a like type PACKED, ZONED, or<br />

CHARACTER physical file field, the DATFMT on the from-field is ignored. No<br />

DATE conversions take place in these instances.<br />

For ZONED and PACKED fields, if the length is not valid for the current job’s<br />

DATFMT and assumed form, copy file diagnostic messages CPF2960 and CPF2963<br />

is issued followed by a CPF2817 escape message.<br />

If the length of the field is valid for the current job’s DATFMT, the system attempts<br />

to convert/copy it from or to the DATE field. The system sends a CPF2958<br />

message and the to-field is set with its default value:<br />

v If the field value is incorrect (such as 13 for the month portion of *MDY form) or<br />

v If a mapping error occurred because the data is not in the assumed form for the<br />

PACKED or ZONED field<br />

The default value may be NULL, some user-defined value, or the default data-type<br />

value.<br />

You can copy from and to files that contain user-defined functions (UDFs),<br />

user-defined types (UDTs), DataLinks (DLs), and large objects (LOBs). This topic<br />

describes AS/400 data management support for these objects.<br />

Copying files that contain user-defined functions<br />

You can specify CRTFILE(*YES) on the CPYF and CPYFRMQRYF commands when<br />

you copy files that contain user-defined functions (UDFs). UDFs do not get created<br />

with the new to-file.<br />

You cannot copy DDM files that contain user-defined functions to AS/400 systems<br />

running at Version 4 Release 3 or earlier.<br />

Copying files that contain user-defined types<br />

You can specify CRTFILE(*YES) on the CPYF and CPYFRMQRYF commands when<br />

you copy files that contain user-defined types (UDTs). If the from-file is an SQL<br />

table, view, or index that contains a UDT, these commands create an SQL table.<br />

You can copy UDTs to other UDTs using FMTOPT(*MAP), provided that you are<br />

copying from and to the same (identical) UDT. You can also copy from a non-UDT<br />

to a UDT, provided that the source type is compatible. Data mapping is not<br />

allowed if you are copying between UDTs that are not identical. Also, data<br />

mapping is not allowed if you are copying from a UDT to a non-UDT.

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

Saved successfully!

Ooh no, something went wrong!