iSeries: CPYing DIR from one place to another place with in box

1675 pts.
Tags:
AS/400 v6r1
iSeries V6R1
I'm getting some error message while CPYing a DIR from one path to another DIR path...Does any body have idea on copying data between DIR path with in the system,If so pls let me know..?
Error message is : Obect is Directory and Object is XXXXXXXXXXXX


Software/Hardware used:
V6R1,P7

Answer Wiki

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

To all,

This is my Error message..

Additional Message Information

Message ID . . . . . . : CPFA0DA Severity . . . . . . . : 40
Message type . . . . . : Diagnostic
Date sent . . . . . . : 02/28/12 Time sent . . . . . . : 10:12:04

Message . . . . : Object is a directory. Object is
/DOMINO/XXXXXXXX/smd.

Cause . . . . . : The operation expected an object which is not a directory.
Object /DOMINO/XXXXXXXX/xxx is a directory.

Recovery . . . : Determine the correct name for the object and retry the
operation.

and the command is
and taking option 3 from WRKLNK screen to copy the desired object and passing the destination path.

Note: I’m copying a DIR and i want this DIR to be part of another DIR as Child/sub DIR

Discuss This Question: 9  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
  • CharlieBrowne
    Do you have the CPF Msgid for that error. Is there any other information in the joblog?
    41,430 pointsBadges:
    report
  • TomLiotta
    In addition to the message identifier, it will probably be necessary to see an actual CPY command that you are trying to make work along with a basic description of the result that you expect. I can think of two or three possible interpretations of what you want to do, and they have different ways to do them. Tom
    125,585 pointsBadges:
    report
  • qmaster
    Just got to know from IBM site.. The Copy Object (CPY) command copies a single object or a group of objects. does this work ? Saving the DIR to SAVF and restore it to target DIR
    1,675 pointsBadges:
    report
  • TomLiotta
    does this work ? Saving the DIR to SAVF and restore it to target DIR Yes, that will work. But the CPY command is an easier way to do it. It looks like you tried to show an example of the command, but it didn't come across. Please try again. Tom
    125,585 pointsBadges:
    report
  • qmaster
    Tom, I've tried SAVF way..it worked nicely.but few files were not saves as they were in use. If we use FTP to get and put the DIR in desired path,Will FTP able to save all the files,even though they are in USE? I've tried multiple times with CPY cmd and along with its parameters..nothing worked out. I also consulted an IBM guy..he also suggested CPY don't work for DIRs.
    1,675 pointsBadges:
    report
  • TomLiotta
    ....an IBM guy..he also suggested CPY don’t work for DIRs. CPY works fine for directories if you code the command correctly. There would be no purpose for the SUBTREE() parameter if it didn't work with directories. Please show an example of a CPY command that you want to make work and include a simple description of what you expect it to do. Regardless, if any of the files are locked against access, those files are not going to be included. If they were included, then there'd be no use in locks at all -- the whole data processing system would collapse. It won't matter if it's FTP or CPY or anything else. Tom
    125,585 pointsBadges:
    report
  • qmaster
    CPY ?*OBJ('/DOMINO/MLILHKDEV02/smd') TODIR('/DOMINO/Restore') SUBTREE(*ALL) My intention is to Copy SMD DIR as a sub DIR under /Restore DIR. When i tried not using SUBTREE ,got error message like Object not found.,but using SUBTREE i din't get error message except OBJECT COPIED .1 OBJECT FAILED. But the SMD DIR not copied to Restore DIR.
    1,675 pointsBadges:
    report
  • TomLiotta
    But the SMD DIR not copied to Restore DIR. What was the content of /DOMINO/Restore before the command? What was in /DOMINO/Restore after the command failed? (I can guess, but you need to confirm.) i din’t get error message except OBJECT COPIED .1 OBJECT FAILED. You didn't show the message identifier yet, but I will assume that it is CPFA0BB. If you look at the details of that message, you'll see that it says "Recovery . . . : See job log (DSPJOBLOG command) or press F10 (Display messages in job log) for additional information." What was in the joblog before that message? There should be a diagnostic message that explains why the command failed. I have a feeling that you will see a CPFA0A9 message in the joblog that you have missed. If you can answer the questions I just asked, I can tell you which step you need to add to your process. Tom
    125,585 pointsBadges:
    report
  • qmaster
    Tom, Due to some problem i couldn't recreate the same problem again...but my work is done by doing SAVF...if the same problem re -occur again.I will update here...Thanks for your expert advise.
    1,675 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