CPY an IFS file from one directory to another

15 pts.
Tags:
CPYF
IFS
I have a file in a folder on the IFS -we will call the folder MYFILES and the file is FILEA. I want to copy a duplicate of the file to folder YOURFILES with the name FILEA. The command is: CPY OBJ('/MYFILES/FILEA.csv') TOOBJ('YOURFILES/FILEA.csv') REPLACE(*YES) I get the following error: CPFA0A9 Object not found. Object is YOURFILES/FILEA.csv. Both folders exist in the root directory of the IFS an FILEA.csv is in folder MYFILES. Ideas?

Answer Wiki

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

Hi,

The target <b>file</b> doesn’t exist within the target directory, but you’re trying to replace it, therefore you receive an error.

Regards,

Martin Gilbert.

Discuss This Question:  

 
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

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