Solved

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

Posted on 2004-04-05
2
460 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
Comment Utility
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
Comment Utility
just to close this question.  for the record, no acceptable answer was given.  Merry Christmas, enkrypter!!!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SSL RA VPN 7 72
MAC Needs 2 Domains 2 42
Copy a file to a share on a Domain 3 54
ADMT Intra Forest migration questions 7 67
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
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.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now