Solved

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

Posted on 2004-04-05
2
468 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

729 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