Prevent position errors when copying files

When the copy file function cannot locate the first record to copy in the from-file member, a position error occurs.

This can happen when using the CPYF, CPYSRCF, or CPYTOTAP commands. If any of the following conditions are true, you might receive a position error for the from-file member:

If a member position error occurs, the member cannot be added to the to-file, and no information about the member is added to the print lists.

If a member position error occurs during a copy operation that involves multiple members, the copy operation will continue with the next member.

If a member position error occurs for all members, a print list is not produced, and the to-file cannot be created.