105 pts.
 Using CL to COPY text files to QNTC share
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

Answer Wiki:
I try this command to send a sequential file 133 characters long to the windows share:

CPY OBJ('/qsys.lib/rlklib.lib/flnames.file/flnames.mbr')
    TODIR('/qntc/carnyit2/as400$/IVR_Updt')             
    TOCCSID(*CALC)              

The error message is CPFA0AD  Function not supported by file system.                
Last Wiki Answer Submitted:  February 13, 2013  6:33 pm  by  RichK1151   105 pts.
All Answer Wiki Contributors:  RichK1151   105 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 108,225 pts.

 

When I use other parameters in the CPY statement is get a CPFA0AD error message

 105 pts.

 

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

 108,225 pts.

 

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

 108,225 pts.