1) CRTSAVF FILE(QGPL/TESTSAVF)
2) SAV DEV('/qsys.lib/qgpl.lib/testsavf.file') OBJ(('/testfolder')) SUBTREE(*ALL) SAVACT(*YES)
3) FTP 10.10.10.10 (at DOS prompt w/ valid IP Address)
4) login with valid "User" and "Password"
5) type BINARY and press ENTER
6) cd QGPL (if NAMEFMT 0)
7) cd /qsys.lib/qgpl.lib (if NAMEFMT 1)
8) lcd c:/
9) get testsavf.file
10) quit
This file can be emailed as one file attachment if being restored onto another system at a different location or by a different person. If the file is too large to email, use the DTACPR(*YES) parameter on the SAV command.
The restore procedure on the target system is as follows:
1) CRTSAVF FILE(QGPL/TESTSAVF)
2) FTP 10.10.10.10 (at DOS prompt w/ valid IP Address)
3) login with valid "User" and "Password"
4) type BINARY and press ENTER
5) cd QGPL (if NAMEFMT 0)
6) cd /qsys.lib/qgpl.lib (if NAMEFMT 1)
7) lcd c:/
8) put testsavf.file
9) quit
10) RST DEV('/qsys.lib/qgpl.lib/testsavf.file') OBJ(('/testfolder')) SUBTREE(*ALL)
This process is making use of both native file system commands and IFS commands. The save file is a native OS/400 object stored in a library. It is created with the traditional commands. The SAV and RST commands are IFS versions of the SAVOBJ and RSTOBJ commands.