


To be able to work correctly with a terminal that uses a code other than the ISO 8859/1.2 code, a TERMCHAR SET must be defined for this terminal in CONTROL. This TERMCHAR SET defines a mapping of the national special characters of the other code to the default code ISO 8859/1.2.
The number of TERMCHAR SETs that can be simultaneously valid for a SERVERDB is limited to eight. For more information, see the CONTROL manual.
Then a relation has to be established between the terminal-specific TERMCHAR SET and the respective terminal. This is done via the name of the TERMCHAR SET and the environment variable TERM or DBTERM related to the terminal. In "$dbroot/terminfo/term", there is a file "charsetnames". The terminal identification ("$term" or "$dbterm") is written to the first position of this file, separated by blanks from it follows the name of the corresponding TERMCHAR SET. This entry can be overridden by the environment variable DBCHARSET (see Section Installing the ADABAS Software ).
Now the ADABAS database is able either to correctly interpret and store all the characters sent from this terminal or to send all characters from the database to the terminal in the code that is correct for this terminal.
If the attempt is made to work with a TERMCHAR SET unknown to the corresponding SERVERDB, this SERVERDB rejects the establishment of a database session with the error message "unknown termchar set NAME".


