Learning FTP from the bottom up…

0 pts.
Tags:
AS/400
DataCenter
Email
PC/Windows Connectivity
RPG
RPGLE
Are there any good resources available on the web that can give me the basics (most often used/needed) FTP commands. Or, can anyone give me the details of the most commonly used commands. I've got to strart doing some FTP'ing in this new job.
ASKED: October 11, 2006  4:59 AM
UPDATED: October 11, 2006  5:59 AM

Answer Wiki

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

Hi

After logging on to an FTP server, you’ll probably find that the most commonly used commands are PUT to send a file to the server and GET to retrieve a file from the server.

If you’re sending or retrieving AS400 save files to move objects around, then you need to use the BIN command to tell the server not to translate the object from EBCDIC to ASCII.

On any FTP server the HELP command will give you a list of what commands are available. Some systems help is better than others, the AS400′s is very comprehensive.

On the 400, you can use FTP LOOPBACK to start an FTP session on the 400 using the 400 as the server. It’s great for testing and learning.

By default FTP on the 400 is interactive and uses “files” INPUT and OUTPUT to receive commands and echo responses. For interactive FTP the INPUT file is the keyboard and the OUTPUT file is the display.

To run FTP in batch you first configure a script in a source member (I use QFTPSRC as the source file) and override file INPUT to use the source member. To log the results you override file OUTPUT to another source member which will be created if it doesn’t exist.

For example, if member SCRIPT in file QGPL/QFTSPRC has the following:

userid password
bin
put mylib/mysavefile mysavefile.savf
ascii
put qgpl/qftpsrc.script script.txt
quit

then you would run it by:

OVRDBF INPUT TOFILE(QGPL/QFTPSRC) MBR(SCRIPT)
OVRDBF INPUT TOFILE(QGPL/QFTPSRC) MBR(SCRIPT_LOG)
FTP ‘xxx.xxx.xxx.xxx’

The script will transfer a save file to a PC based FTP server and also the script itself.

Hope this helps you get started, it’s all pretty straight forward once you get into it.

All the best

Jonathan

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
  • Riccardo
    You can use this URL as a starting reference: http://cr.yp.to/ftp.html and there is an FTP PDF in the InfoCentre, which hopefully will open up for you in PDF -> http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiq.pdf Cheers Richard.
    95 pointsBadges:
    report
  • Riccardo
    You can use this URL as a starting reference: http://cr.yp.to/ftp.html and there is an FTP PDF in the InfoCentre, which hopefully will open up for you in PDF -> http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiq.pdf Cheers Richard.
    95 pointsBadges:
    report
  • Riccardo
    You can use this URL as a starting reference: http://cr.yp.to/ftp.html and there is an FTP PDF in the InfoCentre, which hopefully will open up for you in PDF -> http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiq.pdf Cheers Richard.
    95 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