FTP a file to AS/400 from a PC command line

Tags:
AS/400 File Transfer
AS/400 FTP
CPYTOIMPF
CPYTOSTMF
How do I transfer(FTP) a file(pf of savf) from PC command line? Wanna know the process..I tried several times using CPYTOSTMF and CPYTOIMPF but that file resides in the AS400 IFS..How to transfer from there??

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you have multiple objects to move from PC to IFS, the Internet Explorer route Phil suggested is best.
Just open explorer, type \\yourIPaddress or \\systemname. Login the popup window and you will see your IFS folders. Now you can simply drag and drop just like windows.

__________________________________________

May not be as hard as you think

Using My documents
Address \\MyAS400Name
Then login — you are on the IFS — find your path and copy your object to the PC using PC type keystrokes.

Or use Internet Explorer and
address \\MyAS400Name

Phil

___________________________________________________________
CPYTOSTMF and CPYTOIMPF are used to transfer data from the native AS/400 DB2 to flat files on the IFS.
This includes various conversions like conversion to ASCII, creation of .cvs type files, etc).

Since your files were already on the IFS which, is a DOS like structure, all you need is a copy or FTP to move them to your PC or server. You can also use them directly from the IFS.

Phil

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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
  • Rajgoaj
    What is the actual use of CPYTOSTMF and CPYTOIMPF?
    280 pointsBadges:
    report
  • Teandy
    To copy files from the i5 to the IFS.
    5,860 pointsBadges:
    report
  • Splat
    If it's a savf that you're trying to FTP from a PC, make sure the target file on the /400 is created as a savf before you start the process. From a DOS command prompt, type the following:
    ftp [ip address]
    <enter user>
    <enter password>
    binary
    put [savefile] [library/target file]
    quit
    For a physical file, the only difference would be selecting ascii rather than binary. As an alternative to opening a DOS command prompt, if you know the IP address of the source machine, you can start an FTP session on the /400 and replace the put with get.
    7,635 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following