Solved

FTP from AS400 to PC - data files are zero bytes - HELP!

Posted on 2004-04-05
2
464 Views
Last Modified: 2013-11-29
Howdy,
I'm not an AS400 person and don't need to become one!  However, I do need to get some data off of an AS400 and onto a Windows PC for the purpose of writing a program that will parse the data files retrieved and "convert" them to something else (sql server, in this case).

Background:
I was able to successfully FTP from the AS400 to my FTP server.  I could browse contents and  navigate the dir structure of the ftp server from the 400 after being logged in.  

I could "PUT" a data file to the ftp server and a file with an identical name would appear there.  However it would always contain zero bytes.  

If I transferred a program file (as identified by the AS400 technicians there), it would be greater than zero bytes.

I tried toggling the transfer "mode" from active to passive (and vice-versa).  I tried transferring in Binary mode, ASCII mode, Image (same as binary) mode.  I did these in all possible combinations of each.  No dice...still zero bytes on data files, more than zero bytes on program files.

QUESTIONS:
1)   How can I transfer data files in a batch (for instance, get the entire library's contents) so that the data within the file actually transfers also

2) Is FTP'ing files from the AS400 the best (or even acceptable) way to get data out of the 400 for conversion for use in Windows (SQL server or MS Access, for instance)?

0
Comment
Question by:colepc
2 Comments
 
LVL 2

Accepted Solution

by:
enkrypter earned 500 total points
ID: 10762245
Try scripting your transfers form the AS400 to a windows FTP server.  Try a different FTP client.  Check network hardware.  Possibly a firewall or proxy server might have a hand in this.  I have seen 3com switches go bad and not pass traffic that was a certain size.  A bad switch can do some very odd things.  I doubt that is your issue, but it's worth checking out at the last minute...
0
 

Author Comment

by:colepc
ID: 11986874
just to close this question.  for the record, no acceptable answer was given.  Merry Christmas, enkrypter!!!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question