Cl program that reads a datafile for ftp

100 pts.
Tags:
CL
FTP
RPG/400
i need an example of cl program that reads a file containing ftp commands and executes the commands in their arrival sequence. thanks.

Answer Wiki

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

Hi,

Here it is :-
<b>
PGM

OVRDBF FILE(INPUT) TOFILE(Yourlib/Yourfile)
OVRDBF OUTPUT(OUTPUT) TOFILE(QTEMP/FTPLOG)
FTP (hostname or IP address)
DLTOVR *ALL

ENDPGM</b>

Replace the Yourlib/Yourfile with your file containing FTP commands. The OUTPUT file is made in QTEMP, if you leave this override out, then the output will show on the screen if you run interactively.

Replace the hostname or IP address with the hostname or IP address of the FTP server.

Regards,

Martin Gilbert.

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
  • PSMurray
    Lacag - Try this link FTP as batch job In addition to running the FTP client interactively, you can run the FTP client in an unattended mode. This topic provides two examples of this method: a simple example and a complex example. You can also refer to Section 6.7, Batch FTP, of V4 TCP/IP for AS/400(R): More Cool Things Than Ever (about 744 pages) for another example. MIS
    530 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