|
Dan,
TNAPI is an API which you call to communicate with the AS/400 through a
telnet session. You specify the data that you want to be "typed", including
cursor positioning (TAB, right arrow, etc), and a function key (ENTER, F3,
etc). The resulting screen is returned to your program as a 1920 character
variable. In addition, you can specify a "wait" string, in which case TNAPI
will wait until that string appears on the screen (in the position
specified) before returning.
TNAPI can be called from a batch program, as long as TCP/IP services are up.
As an example of it's use, I recently had to recreate a bunch of queries
because of a file change. For some reason, the AS/400 does not have a
command to recreate a query, it can only be done interactively (the
System/38 did have such a command). With TNAPI it was a piece of cake.
Albert
-----Original Message-----
From: Dan Bale [SMTP:dbale@samsa.com]
Sent: Friday, June 14, 2002 9:14 AM
To: midrange-l@midrange.com
Subject: RE: Update to TNAPI progam
Al,
Could you describe this program in a little more detail? Maybe
explain the
potential uses? I think I have an idea, and may have a future need,
but
just want to learn more at this point. I searched the archives and
didn't
find much, just that Carl G. is hosting the download.
TIA.
Dan Bale
SAMSA, Inc.
989-790-0507
DBale@SAMSA.com <mailto:DBale@SAMSA.com>
Stanley Cup Finals lower bowl tickets at Joe Louis Arena: $500
Official Red Wings jersey: $150
Octopii to drop splat in front of Irbe: $22 each
Nine Lord Stanleys: PRICELESS!
-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of York, Albert
Sent: Friday, June 14, 2002 12:00 PM
To: 'MIDRANGE-L@midrange.com'
Subject: Update to TNAPI progam
I have updated the TNAPI (telnet API) program.
This is a freeware program which allows you to run interactive
programs in
batch by starting a telnet session.
I have improved the way it logs the screens received from the AS/400
If you would like a new copy please let me know.
Albert York
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.