IBM Power Systems

IBM Power Systems

About This Blog

Warm wishes and welcome to all AS400 Administrators and Operators.



This is exclusive blog for iSeries system Administrators working anywhere in the world. Also a place for guys and gals who want to share knowledge pertaining to iSeries. This blog has been designed for exchanging knowledge on AS400 or iSeries server administration and operations.



Monday, March 29, 2010

How to FTP a Save File Stored in the IFS to a Library on the Same System

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.
CRTSAVF FILE(YOURLIB/YOURSAVF)
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:
FTP sysname
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.
> USERID
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.
> bin
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.

No comments:

Post a Comment