Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Contents
Overview ......................................................................................................................2
Synchronizing with Host Screens .............................................................................3
Efficient Data Entry .....................................................................................................5
Efficient Data Retrieval ...............................................................................................6
Tips . .............................................................................................................................7
Dos and Donts ...........................................................................................................8
Overview
The following is a primer to help developers write applications which automate their
way through host applications. Synchronizing is the hardest part of any automation
because it is dependent on how the host application was written. Consider the
following scenarios and you will quickly realize that synchronization is sometimes not
so obvious:
1) You are at the TSO Ready prompt and you type 'ISPF'. The host responds with
one 3270 I/O which displays the ISPF panel and unlocks the 3270 keyboard.
2) You are at the TSO Ready prompt and you issue a command such as
LISTCAT. The host responds with multiple 3270 I/Os and the last I/O unlocks the
3270 keyboard.
3) You are at a CICS application screen and you issue some type of query which
may take some time. The host responds immediately with one I/O which states
'Query in Progress' and unlocks the 3270 keyboard. Now, you wait until you see
the response come back, something which may take 100 ms or 5 seconds.
In cases (1) and (2), synchronization is simple. You press an action key and simply
wait for the host to unlock the 3270 keyboard and you can proceed with the next
request. In case (3), the 3270 keyboard is unlocked before the transaction is
complete. Therefore, you must wait for some additional visual indicator to know that
the transaction is complete (either good completion or some kind of failure).
Tips
There are a number of methods which may help you control the emulator when
automating tasks. The following Host methods may be useful:
Host Method
Description
PSReserved
CursorRC
Cursor
WaitConnected
WaitForStringRC
WaitIdle
WaitPSUpdated
connectivity.hummingbird.com
getinfo@hummingbird.com
www.opentext.com
sales@opentext.com
support@hummingbird.com
International Sales
1-800-499-6544
If you are a Hummingbird Connectivity partner or customer, visit connectivity.hummingbird.com or online.opentext.com for
more information about this and other Open Text solutions.
Open Text is a publicly traded company on the NASDAQ (OTEX) and the TSX (OTC).
Copyright 2006 by Open Text Corporation. Open Text, Livelink, Livelink ECM, and Great Minds Working Together are trademarks or registered trademarks of Open Text Corporation. All other trademarks or registered
trademarks are the property of their respective owners. All rights reserved.