Batch FTP using IIS

In this tip user Shawn Hunt provides code to make batch FTPing (using IIS) much easier.

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

t.

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 last published in March 2002

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close