Q

SAVF by FTP on AS/400 -- error "source file not found"

On the AS/400, if you don't specify the correct commands on the "source" system to locate the source file, you will get the source file not found error when you try to use FTP. Ken Graap provides an example of using FTP to transfer a save file from a source system to a target system.

I am trying to transfer SAVF by FTP from one AS/400 to another. I receive an error message that source file not

found, even it was created before and exists.

Is there anything special I should do ?

If I understand your question, you are saying that the "source" file doesn't exist. The "source" file is the file you are copying from. The file you are copying to is referred to as the "target file." You seem to have created the "target" file before attempting the FTP transfer. This is correct.

You are probably not specifying the correct commands on the "source" system in order to locate the "source" file, the one you want to transfer. Here is how I'd use FTP to transfer a save file named S02SavFile from my "source" system (S02) to a "target" system (S17)…

On the "target" system (S17) I'd create an empty *SAVF called S02SavFile:

CRTSAVF FILE(QGPL/S02SAVFILE) AUT(*ALL)

On the "source" system (S02) I'd issue the following commands to transfer save file QGPL/S02SavFile to the "target" system (S17):

FTP RMTSYS(S17)

220 Connection will close if idle more than 5 minutes.

Enter login ID (keg):

===> KEG  

331 Enter password.

Enter password:

===>   XXXXXXXXX

230 KEG logged on.

OS/400 is the remote operating system. The TCP/IP version is "V5R4M0".

250 Now using naming format "0".

257 "KENNETH" is current library.

CD QGPL

250 "QGPL" is current library.

BIN

200 Representation type is binary IMAGE.

PUT QGPL/S02SAVFILE

250 Now using naming format "0".

257 "QGPL" is current library.

227 Entering Passive Mode (198,5,59,160,200,133).

150 Sending file to member S02SAVFILE in file S02SAVFILE in library QGPL.

226 File transfer completed successfully.

146653056 bytes transferred in 15.614 seconds. Transfer rate 9392.253 KB/sec.

QUIT

That's all there is to it …

This was first published in December 2008

Dig deeper on FTP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchEnterpriseLinux

SearchDataCenter

Close