Trying to use CPYF to copy a file from one library to another. The code we are using changes the member of the file so it becomes a date identifier. The command string looks like this:
CPYF FROMFILE(FROMLIB/FILE) TOFILE(TOLIB/FILE) FROMMBR(FILE) TOMBR(X063009X01) MBROPT(*REPLACE) FMTOPT(*NOCHK)
When the command executes, I get:
Members for file FILE more than maximum allowed
Member X063009X01 not added to file because of error
I thought that CLRPFM clears the file and member, but apparently that is not the case. I also thought that the *REPLACE would let me overwrite the member. The MAXMBRS on the file is set to 1.
Any help would be appreciated!