Ask the Expert

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

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: