TWS Automation Common Routines
This information describes TWS Automation common routines that request information or perform tasks associated with TWS Automation.
You can use these common routines in automation procedures you create. Examples, sample routines, and data area information are given to show how this might be done.
TWS Automation provides INGTWS and OPCAQRY to retrieve and update TWS Automation-unique information. These routines can also be used in user-written extensions of TWS Automation. The following routines are arranged alphabetically for easy reference.
Note: The common routines listed below will automatically locate the
active TWS Controller
before executing PIF requests and will schedule all PIF interface
calls on the same autotask to serialize access to the EQQMLOG data
set.
The active TWS Controller
can be located in user routines by issuing the following sequence
of commands:
INGLIST CATEGORY=OPC,SUBTYPE=CONTROLLER,OBSERVED=AVAILABLE,
OUTMODE=LINEThen for each subsystem returned from INGLIST
issue: INGVARS GET subsystems_returned_above TWSACT OUTMODE=LINEThe
active TWS Controller
will be in AVAILABLE status with the manager variable 'TWSACT' set
to 'ACTIVE'.