If you really need to have your new file with a different record format, then simply create the new file with a modified copy of the DDS of the original file, changing only the record name (do not add, remove, or change the position or type of any of the fields). Then use CPYF FMTOPT(*NOCHK).
But I agree with Mercury2's answer. The RENAME keyword exists for just that reason.
-- Francis I'd like to change the world, but I can't find the source code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.