


CPY OBJ('autl/*.*') TODIR(newautl)
That command would copy files from a directory named autl to a directory named newautl. Both of those should exist in the job's current directory (because they are specified as relative paths and because the TODIR() must exist).
Because the SUBTREE() parameter defaults to *NODIR, no subdirectories will be copied by that command. Because the pattern contains a "." character, only files with a "." in the name will be copied.
What problems are you having with the CPY command?
Tom
Hi Rajasekhar,
Do you mean copying Objects from one directory to another directory or copying files through IFS?
If it is the first case(Copying objects from one library to another library), You will need to use CRTDUPOBJ command or use Option ’3′ at the particular object.
And, mention the To Library and Object Name.
In second case, You can directly copy the file or document and paste it in another folder.
Pradeep.


http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fcl%2Fcopy.htm
yeah deepu u r correct, but actually i need to copy some objects from a dir to another dir, normaly we can do it by using cmd cpy,
EX: i’m having dir raja and having some files in it.
now i want to copy those files to another dir raja1.
That looks fine. Are you facing any problem in copying files using copy command?
If so, Mention the error description.
Pradeep.
pradeep if we use cpy cmd, it copies with that dir and its objects, but i need only objs to cpy
I didnt get you exactly.
Only objects mean?
Select the file you want copy, and use Copy command, mention To Directory and To File Name.
Pradeep.
Tom,
i says more than one name matches pattern,
sample:
Directory . . . . : kennedy1/kennedy
Type option, press Enter.
1=Select
Opt Object link
KENN.txt
PFKENN.txt
RPG.rar
if we choose multi option 1:
it says
Only 1 selections allowed. 3 selections made.
if we choose 1le object:
it says
object name already exits
i need that 3 objects to move another directory.
Thanks
sorry TOM its works thanks a lot:-)