I have tried to use CPY to copy file from the AS400 to a QNTC windows share and I get an error that the command is not supported. What command can I use to copy these file over?
Software/Hardware used:
ASKED:
October 7, 2010 2:19 PM
UPDATED:
October 8, 2010 6:25 AM
We need to know what the error was and what kind of file you tried to copy.
The QCPFMSG message file has over 500 messages that include the words “not supported”. Not knowing which message can make guessing an answer difficult. It’s probably CPFA0AD since that error is documented in the help text for the CPY command. But knowing the error is only half of it.
Knowing why the error was signaled requires knowing what kind of copy was attempted. The easiest thing to do is to show us the command that failed. An explanation should be straightforward.
Tom
When I use other parameters in the CPY statement is get a CPFA0AD error message
As previously mentioned, “The easiest thing to do is to show us the command that failed.” Copy&paste your CPY command here so we can look at it. It can be hard enough to debug when looking at source code, but it can be impossible when you can’t see it. — Tom
That’s right. You can’t “copy” a database file member to a PC. A PC has no idea what to do with it. You need to export the data contained in the member. The CPYTOIMPF command can effect an export. In general, no native object from the /QSYS.LIB file system can be represented in any PC file system. — Tom