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)
This was helpful. Thanks a lot
ReplyDeleteAfter FTP, on the target server i have transfer file in different type PF-DTA not SAVF, why...? how to solve..?
ReplyDeleteSame thing of War Huricane. The file is saved as PF instead of save file. how could I solve?
ReplyDeleteon the target server you must creat SAVF(MYLIB/MYSAVF)
ReplyDelete