Tip

Batch FTP using IIS

I have been using this for a while and it is much easier than creating a file transfer or anything of that sort.

Basically, the client PC must be set up with IIS and then slightly tweaked. Right-click on the Default FTP site and click on Properties. Under the Home Directory tab, make sure that "Write" is checked. Under Security Accounts, make sure "Allow Anonymous Connections" is checked.

On the 400 side, I created two files called FTPCMDS and FTPLOG. An example of my FTPCMDS is listed below.

A CL Program will need to be created that uses the FTPCMDS file for input and the FTPLOG file for a detailed log of each thing that happens.

I called my CL program BATCH_FTP and it is attached as well. Make sure that the host name you are FTPing to is in the 400's host table (CFGTCPHTE).

The file will automatically be placed on the PC that you intend for it to go to. The default place is C:Inetpubftproot.


 
FTPCMDS:

ANONYMOUS HUNT@GDXAUTOMOTIVE.COM  
LCD QOS                
PUT INVENTORY INVENTORY.TXT
QUIT                                    
BATCH_FTP (CL Program):

PGM                                                                  
OVRDBF     FILE(INPUT)  TOFILE(QOS/QCLSRC) MBR(FTPCMDS)
 
OVRDBF     FILE(OUTPUT) TOFILE(QOS/QCLSRC) MBR(FTPLOG)  
                                       FTP        RMTSYS(QOSTEMP)                              
                                                                     
ENDPGM            

This was first published in March 2002

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.