Friday, July 3, 2009

(FAQ) How To Transfer AS400 Objects to Another Machine

These steps will help us transfer objects from one machine to another.
1) Create save file. This save file will contain the objects that we are going to transfer. This must be created on both machines.

Command: CRTSAVF FILE(MYLIBRARY/MYSAVF) TEXT('My Save File')

2) Save Objects to save file (*SAVF). You can now save your desired object to your save file.

Command: SAVOBJ OBJ(MYSRCPF) LIB(MYLIB) DEV(*SAVF) SAVF(MYLIB/MYSAVF)

3) Now you can now transfer save file (*SAVF) to the other machine using FTP.

Command: FTP RMTSYS('111.11.11.11')
- User: UserName
- Password: Password
- Binary
- Put MyLib/MySavF MyLib/MySavf
- Quit

4) After completion of FTP, you can now restore your object (from the *SAVF) to machine 2.

Command: RSTOBJ OBJ(*ALL) SAVLIB(MYLIB) DEV(*SAVF) SAVF(MYLIB/MYSAVF)

4 comments:

  1. This was helpful. Thanks a lot

    ReplyDelete
  2. After FTP, on the target server i have transfer file in different type PF-DTA not SAVF, why...? how to solve..?

    ReplyDelete
  3. Same thing of War Huricane. The file is saved as PF instead of save file. how could I solve?

    ReplyDelete
  4. on the target server you must creat SAVF(MYLIB/MYSAVF)

    ReplyDelete