473,327 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Talk to an AS/400

Has anyone used Sockets to talk to an AS/400? I don't need to display
anything, I just need to scrape data.

From QWS3270, after connecting, I type 'logoff' to get in through a back
door. With my VB app, I'm able to connect and receive the logon screen, but
no matter what I try, when I send 'logoff', I always get the logon screen
back.

I've tried converting the 'logoff' string to EBCDIC but when I do that, it
doesn't recognize that i've sent anything at all.

I've also tried turning on "trace" in QWS3270 and it dumps everything in
byte form that was sent to and received from the host. I've tried sending
exactly the same byte array that QWS3270 sends for the 'logoff' command
(it's in EBCDIC), but still get nothing back.

Has anyone been successful in communicating with an AS/400 in this manner?
May 9 '07 #1
2 1817
On May 9, 8:38 am, "Terry Olsen" <tolse...@hotmail.comwrote:
Has anyone used Sockets to talk to an AS/400? I don't need to display
anything, I just need to scrape data.

From QWS3270, after connecting, I type 'logoff' to get in through a back
door. With my VB app, I'm able to connect and receive the logon screen, but
no matter what I try, when I send 'logoff', I always get the logon screen
back.

I've tried converting the 'logoff' string to EBCDIC but when I do that, it
doesn't recognize that i've sent anything at all.

I've also tried turning on "trace" in QWS3270 and it dumps everything in
byte form that was sent to and received from the host. I've tried sending
exactly the same byte array that QWS3270 sends for the 'logoff' command
(it's in EBCDIC), but still get nothing back.

Has anyone been successful in communicating with an AS/400 in this manner?
I know Dart has .NET controls to talk to vt100 emulation but you are
able to specify an emulation and write your own protocols for how to
handle events. I did this with an AIX system.

Also see
http://www.codeproject.com/vb/net/Accessing_AS400.asp

http://www.codeproject.com/vb/net/IBM_Messenger.asp

http://www.zephyrcorp.com/News/host_...jects_2006.htm

May 9 '07 #2
dgk
On 9 May 2007 08:47:49 -0700, scorpion53061 <ke***********@gmail.com>
wrote:
>On May 9, 8:38 am, "Terry Olsen" <tolse...@hotmail.comwrote:
>Has anyone used Sockets to talk to an AS/400? I don't need to display
anything, I just need to scrape data.

From QWS3270, after connecting, I type 'logoff' to get in through a back
door. With my VB app, I'm able to connect and receive the logon screen, but
no matter what I try, when I send 'logoff', I always get the logon screen
back.

I've tried converting the 'logoff' string to EBCDIC but when I do that, it
doesn't recognize that i've sent anything at all.

I've also tried turning on "trace" in QWS3270 and it dumps everything in
byte form that was sent to and received from the host. I've tried sending
exactly the same byte array that QWS3270 sends for the 'logoff' command
(it's in EBCDIC), but still get nothing back.

Has anyone been successful in communicating with an AS/400 in this manner?

I know Dart has .NET controls to talk to vt100 emulation but you are
able to specify an emulation and write your own protocols for how to
handle events. I did this with an AIX system.

Also see
http://www.codeproject.com/vb/net/Accessing_AS400.asp

http://www.codeproject.com/vb/net/IBM_Messenger.asp

http://www.zephyrcorp.com/News/host_...jects_2006.htm

I used the Dart controls to scrape a legacy system and it works fine.
May 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Amr Mostafa | last post by:
Hello all, Can I use php to talk with a web service ? I need to talk with a web service.. I'm programming with php for about 7 months now.. but in fact I have no idea about using it with web...
77
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
1
by: cs | last post by:
I have an app that uses a thirdpart library, this thirdparty library creates an appdomain (totally out of my control), this new appdomain loads some assemblies I created and this code I created...
19
by: VB Programmer | last post by:
If I have a VB6 and a VB.NET application, or 2 VB.NET applications what is the best way to "talk" between them? They both run on the same PC. Right now I'm just using text files to share...
1
by: Jon Shemitz | last post by:
Theoretically, my long-delayed .NET 2.0 book (<http://www.midnightbeach.com/dotnet>) will be DONE and handed off to the copy editor by Jan 31. My shoulder's giving me trouble and I might miss that...
1
by: kelvin.jones | last post by:
Hi guys, I have read several discussions on this group (and others) that talk about polling a server using ajax transactions and if it is possible to push to the client. The general consensus seems...
0
by: Brian Quinlan | last post by:
What's New? =========== The deadline for submitting a talk or tutorial for the Vancouver Python Workshop is fast approaching. Talks will be accepted until Friday June 16th. To submit a talk,...
0
by: Brian Quinlan | last post by:
What's New? =========== This is your last change to submit a talk for the Vancouver Python Workshop. Talks will be accepted until Friday June 16th. This is a great opportunity for you to...
0
by: Jeff Rush | last post by:
October has arrived and the deadline for submitting a proposal to give a talk at PyCon 2007 is October 31 (November 15 for tutorials). While it is a PyCon tradition to wait until the last minute...
0
by: GHUM | last post by:
We took longer then planned to open the registration. Some potential speakers came in late. To make it even, we extended talk submission deadline for ONE WEEK. New deadline is Friday, 25th...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.