The command that allows an entire library to be transferred (save/restored) between AS/400's using FTP is called PUTRMTLIB.
This command supports only "native" LFS (Library File System) transfers. This command saves the library from the local machine using the save file specified, transfers it to a remote system using FTP, and then restores the library on the target system.
An example of a library transfer looks like the following:
PUT Remote Library (PUTRMTLIB)
Type choices, press Enter.
Remote user profile . . . . . . YOURSELF Name, *CURRENT
Remote user password . . . . . . Character value
Remote system . . . . . . . . . SAPTEST_____________________________________
________________________________________________________________________________
________________________________________________________________________________
____________________________________________________
Library name to copy . . . . . . MYLIB Name
Save file on target system . . . MYSAVF Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Submit job to batch . . . . . . *YES *YES, *NO
Job description . . . . . . . . *USRPRF Name, *USRPRF
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys
You must have save rights on the source AS/400, restore rights on the target AS/400 and access to the RSTLIB command on the source AS/400.