Using CL to COPY text files to QNTC share

125 pts.
Tags:
AS400 Command
CL Commands
QNTC File System
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.                

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • RichK1151
    When I use other parameters in the CPY statement is get a CPFA0AD error message
    125 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following