copying objects from directory

1395 pts.
Tags:
AS/400 Data File
AS/400 data transfer
AS/400 Directory
how to copy objects from a directory to another directory in as400, 

Software/Hardware used:
as400 v4r5

Answer Wiki

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

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.

Discuss This Question: 8  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
  • Gabe9527
    http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fcl%2Fcopy.htm
    11,005 pointsBadges:
    report
  • Rajasekhar15
    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.
    1,395 pointsBadges:
    report
  • deepu9321
    That looks fine. Are you facing any problem in copying files using copy command? If so, Mention the error description. Pradeep.
    3,870 pointsBadges:
    report
  • Rajasekhar15
    pradeep if we use cpy cmd, it copies with that dir and its objects, but i need only objs to cpy
    1,395 pointsBadges:
    report
  • deepu9321
    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.
    3,870 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Rajasekhar15
    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
    1,395 pointsBadges:
    report
  • Rajasekhar15
    sorry TOM its works thanks a lot:-)
    1,395 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