Link to home
Start Free TrialLog in
Avatar of roberto_miguel
roberto_miguel

asked on

Transfer a file to AS400

Hi,

I develop an application in Visual Basic 6.0 that has to transfer a file to an AS400. The problem is the control "inet" don't send the proper information, because don't support EBCDIC format.

Any ideas? Any one knows any free activeX that support EBCDIC transfers?

(I implement another way but i don't have any notification when the file transfers ends. - throat the command line executing a batch file)
Avatar of SRigney
SRigney
Flag of United States of America image

If the file is currently Ebcdic couldn't you just transfer as a binary format with INET and have it work?
Avatar of roberto_miguel
roberto_miguel

ASKER

SRigney

But the file is in ASCII format.

How i can tranfer as a binary file with INET?
inet control doesn't allow to set binary or ASCII

Use ftp command if you want
or use

wininet aPI
EDDYKT

Ok, I find this to use wininet API

SAMPLE: VBFTP.EXE: Implementing FTP Using WinInet API from VB (Q175179)
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q175179 

And i find the method to convert ASCII to EBCDIC

HOWTO: Convert Between ASCII and EBCDIC Character Codes
http://support.microsoft.com/default.aspx?scid=kb;en-us;216399

I'm going to try this solution, convert ASCII file to EBDIC format and make a binary transfer to AS400.
I hope that is works!!
Dang123


I see your answer but the http://www.vbip.com/ don't work, and the solution to make a batch file i have tried.

But the solution of batch file doesn’t work for me, because i don't have any notification of the successful transfer.

The component in vbip.com is free?
roberto_miguel,
    The link isn't working just now for me either, strange, I was in it yesterday, you may want to try it again later. The site has a LOT of tutorials on getting VB to communicate between machines in various ways.

    If you want, I can give you code to watch the batch file running. My program writes the batch file to create a log file which I parse to check for success.

Dang123



Dang123


If is possible, please send me you code (roberto.silva@elementodigital.pt).

I will try later the www.vbip.com

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Dang123
Dang123

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial