Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy AS400 file to a different AS400 folder

Status
Not open for further replies.

evr72

MIS
Dec 8, 2009
265
US
Hello,

I am fairly new to the AS400 OS I have been trying to copy a file for a couple of days and I am a bit stumped. When I look at the path in the iSeries Navigator it shows '/QSYS.LIB/EV.LIB/BMC.FILE/BMC.MBR'
and I would like to copy to a folder called "mybat" when I look at the path for the "mybat" folder this is what I see '/ROOT/HOME/mybat'
so I thought I could do
Code:
 COPY OBJ('/QSYS.LIB/EV.LIB/BMC.FILE/BMC.MBR') TODIR('/ROOT/HOME/mybat')

but get the following message

Code:
Object not found.  Object is /root/home/mybat/BMC.MBR.

not sure exactly how to do this. Ay help is much appreciated
 

I finally was able to get it working, I was looking at the top directory, did not have the file name and I was using the "TODIR" instead of the TOOBJ commandhere is the complete code

Code:
COPY OBJ('/QSYS.LIB/EV.LIB/BMC.FILE/BMC.MBR') TOOBJ('/HOME/mybat/BMC.MBR')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top