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
ASKED:
February 27, 2012 4:48 PM
UPDATED:
March 17, 2012 1:12 AM
Do you have the CPF Msgid for that error.
Is there any other information in the joblog?
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
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
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
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.
….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
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.
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
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.