Example of FTP script

10 pts.
Tags:
FTP Script
Please provide me with an example of iSeries script in QFTPSRC file.

Software/Hardware used:
ZMODFTP

Answer Wiki

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

First create two source files.

You can name them whatever you want. I use FTPINPUT & FTPOUTPUT

Create a member in FTPINPUT. Enter all information that you would normally have to key in if you did the FTP interactively. From your USRPRF to the QUIT command

In a CL program you would need these statements:

OVRDBF File(Input) Tofile(FTPINPUT) MBR(your member)

OVRDBF File(Output) Tofile(FTPOUTPUT) MBR(your member)

FTP xxxxx  Where xxxx is the target of your FTP process

 

once completed, file FTPOUTPUT will contain a log of the FTP process

Discuss This Question: 1  Reply

 
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

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