Using FTP to Transfer a Save File from a PC
The following instructions show how to upload and restore a save file called upload.savf in folder transfer to an existing save file called SAVF in library UPLOAD on the AS400. You only need to type the commands shown in bold.
1. Create an FTP link to your AS400 or iSeries machine. From a dos prompt type the following command and then press Enter:
C:> [b:53fd57f390][color=green:53fd57f390]FTP host_name_or_ip_address_of_AS400[/color:53fd57f390][/b:53fd57f390]
2. You will be prompted, separately, for an AS400 user ID and password. Enter the user ID and then press Enter. You will then be prompted for the password, type this and then press Enter.
3. Once the FTP> prompt appears the AS400 is ready for you to enter an FTP command. First we need to change the transfer mode to Binary (image) mode and this can be done by typing the following:
[b:53fd57f390][color=green:53fd57f390]FTP> bin[/color:53fd57f390][/b:53fd57f390]
4. Now we can transfer the save file to the AS400 using the PUT command:
[b:53fd57f390][color=green:53fd57f390]FTP> put c:\transfer\upload.savf UPLOAD/SAVF (replace[/color:53fd57f390][/b:53fd57f390]
Please note, the (replace parameter is only required if the save file already exists on the AS400.
5. End the FTP session using the quit command:
FTP> quit
6. Sign on to the AS400 using a profile that has authority to restore objects to the system.
7. From any AS400 command line, type the following and then press Enter:
[b:53fd57f390][color=green:53fd57f390]RSTLIB LIB(ASTRADYNE) DEV(*SAVF) SAVF(UPLOAD/SAVF)[/color:53fd57f390][/b:53fd57f390]
michael9406 回复于:2003-07-12 20:03:39 |
up |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/