Integrating the EUS
Execute the following to establish the EUS Toolkit environment:
|
Note that _acu.utl must be in the current directory or the PRO/5 PREFIX.
When using traditional input code in some software with the newer input capabilities of the EUS Toolkit, configurations for the edit keys may need to be swapped out when switching between old and new programs. There are two ways to accomplish this:
|
|
The |
|
|
The |
Invoke the EUS Toolkit with the following when adding a new program to an old system:
|
An alternate method to integrate older programs is to invoke the EUS Toolkit, CALL the old program, and restore the Toolkit environment:
|
Another alternative is to use a global string flag and modify old programs to search for this string:
|
The appropriate method depends on the circumstances and needs. As systems evolve, more EUS-aware programs merge into applications; however, old programs can still be useful, while others are too intricate or not important enough to rewrite quickly.
Use the _cleanup.utl utility to clear EUS tables completely. This utility removes all global strings loaded by the EUS Toolkit.
If you are uncertain of what state the global string table is in and know absolutely that it needs to be in the standard PRO/5 state, perform the following commands to purge the global string area and restore it to its original state:
|
The !CLEARALL command in the STBL() function clears everything but a few reserved names. This logic should be reserved for emergency situations within the application. Refer to the STBL Formats section in Chapter 6 of the User's Reference Guide for additional information on using this function.
Individual entries can be cleared by using STBL("!CLEAR",strvalue). This method is safer to use with an accurate list of items.