Copying files that contain user-defined functions
You can specify CRTFILE(*YES) on the CPYF and CPYFRMQRYF commands when you copy files that contain user-defined functions (UDFs). UDFs do not get created with the new to-file.
You cannot copy distributed data management (DDM) files that contain user-defined functions to System i™ products.
Parent topic:
Copying complex objects
Related information
CPYF command
CPYFRMQRYF command