How to FTP a Save File Stored in the IFS to a Library on the Same System so Data Can be Restored From It
This document provides the steps for FTPing a save file (savf) that is stored in the IFS to a library on the same system so that data can be restored from the save file.
Resolving the problem
To FTP a save file stored in the IFS to a library on the same system, you should perform the following steps:
1. Create a save file that has the same name as the save file stored in the IFS in the library of your choice.
Note: Replace YOURSAVF with the name of the savf stored in the IFS. Replace YOURLIB with the library you would like the savf stored in.
2. On a command line, FTP to the current system you are logged onto:
Note: Replace sysname with the name or IP address of your system.
3. Use the following example as a guide for the FTP prompts. In this example, replace the following information with your information:
USERID = Your IBM i user ID
/IFSDIRECTORY/YOURSAVF = The path to the IFS directory containing the savf
YOURLIB/YOURSAVF = The library and savf you specified in Step 1
File Transfer Protocol
Previous FTP subcommands and messages:
Connecting to host sysname.domain at address x.x.x.xxx using port 21.
220-QTCP at sysname.domain.
220 Connection will close if idle more than 15 minutes.
331 Enter password.
230 USERID logged on.
OS/400 is the remote operating system. The TCP/IP version is "V6R1M0".
250 Now using naming format "0".
257 "QGPL" is current library.
200 Representation type is binary IMAGE.
> quote site namefmt 1
250 Now using naming format "1".
> get /IFSDIRECTORY/YOURSAVF YOURLIB/YOURSAVF (REPLACE
229 Entering Extended Passive Mode (|||13492|).
150 Retrieving file /IFSDIRECTORY/YOURSAVF
226 File transfer completed successfully.
42240 bytes transferred in 0.046 seconds. Transfer rate 920.293 KB/sec.
4. The save file should now be stored in YOURLIB/YOURSAVF. You can issue a DSPSAVF YOURLIB/YOURSAVF to verify the contents of the savf and use RSTxxx commands to restore the contents of the savf.
|Operating System||IBM i 6.1|
|Operating System||IBM i 7.1|
|Operating System||IBM i 7.2|
More support for:
Software version: 5.4.0, 6.1.0, 7.1.0, 7.2.0
Operating system(s): IBM i
Reference #: N1012624
Modified date: 21 December 2012