.ad 8
.bm 8
.fm 4
.bt $Copyright by   Software AG, 1993$$Page %$
.tm 12
.hm 6
.hs 3
.tt 1 $NME$Project Distributed Database System$vos00mc$
.tt 2 $$$
.tt 3 $R.Roedling$RTE message include module$1997-08-18$
***********************************************************
.nf


    ========== licence begin LGPL
    Copyright (C) 2002 SAP AG

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    ========== licence end

.fo
.nf
.sp
Module  : RTE_message_include_module
=========
.sp
Purpose :
.CM *-END-* purpose -------------------------------------
.sp
.cp 3
Define  :

.CM *-END-* define --------------------------------------
.sp;.cp 3
Use     :

.CM *-END-* use -----------------------------------------
.sp;.cp 3
Synonym :

.CM *-END-* synonym -------------------------------------
.sp;.cp 3
Author  : R.Roedling
.sp
.cp 3
Created : 1992-10-10
.sp
.cp 3
Version : 1994-01-27
.sp
.cp 3
Release :  7.0 	 Date : 1997-08-18
.br
.sp
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Specification:

.CM *-END-* specification -------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Description:

.CM *-END-* description ---------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.nf
.oc _/1
Structure:

.CM *-END-* structure -----------------------------------
.sp 2
**********************************************************
.sp
.cp 10
.nf
.oc _/1
.CM -lll-
Code    :
/*PRETTY*/



//
// - infos and error messages ( -19000 - -19999 )
//

// =============================== ERRORS ======================================

//
// --- Communication ---
//
#define ERR_TO_MANY_SESSIONS          19000,ERR_TYPE, "CONNECT ","Too many open sessions"
#define ERR_UNSUPPORTED_PROT          19001,ERR_TYPE, "CONNECT ","'sqlconnect' Unsupported protocol %d"
#define ERR_REQ_SOCKET_CONNECT        19002,ERR_TYPE, "CONNECT ","Request socket connect error, rc = %d"
#define ERR_CANT_ALLOC_COM_SEG        19003,ERR_TYPE, "CONNECT ","Could not create comm. shared memory, rc = %d"
#define ERR_CANT_CREATE_COM_SEM       19004,ERR_TYPE, "CONNECT ","Could not create comm. semaphore, rc = %d"
#define ERR_CANT_WRITE_COM_QUE        19005,ERR_TYPE, "CONNECT ","Could not write to comm. queue, rc = %d"
#define ERR_COM_TIMEOUT               19006,ERR_TYPE, "CONNECT ","Command timeout"
#define ERR_WAIT_COM_SEM              19007,ERR_TYPE, "CONNECT ","On waiting for comm. semaphore, rc = %d"
#define ERR_CONN_INFO_INIT_TWICE      19008,ERR_TYPE, "CONNECT ","Connection info was initialized twice"
#define ERR_WRONG_PROTOCOL            19009,ERR_TYPE, "CONNECT ","Wrong protocol: %d"
#define ERR_NO_TCPIP_INSTALLED        19010,ERR_TYPE, "CONNECT ","No TCP/IP inst. to connect remote server"
#define ERR_INCORRECT_MAXSEGMENTSIZE  19011,ERR_TYPE, "CONNECT ","Got incorrect max. segment size: %d"
#define ERR_CANT_CREATE_SOCKET        19012,ERR_TYPE, "CONNECT ","Request socket create error, rc = %d"
#define ERR_CANT_SET_BUF_SIZE         19013,ERR_TYPE, "CONNECT ","Could not set socket buffer (%s), rc = %d"
#define ERR_KEEP_ALIVE                19014,ERR_TYPE, "CONNECT ","Setting 'KEEPALIVE' socket option, rc = %d"
#define ERR_MISSING_HOSTNAME          19015,ERR_TYPE, "CONNECT ","Could not get the TCP/IP hostname"
#define ERR_HOSTNAME_TOO_LONG         19016,ERR_TYPE, "CONNECT ","'HOSTNAME' too long, allowed are %d characters"
#define ERR_GET_SERV_BY_NAME          19017,ERR_TYPE, "CONNECT ","TCP/IP service '%s' not found"
#define ERR_GET_HOST_BY_NAME          19018,ERR_TYPE, "CONNECT ","TCP/IP host name '%s' not found"
#define ERR_TCPIP_ADDR_TOO_LONG       19019,ERR_TYPE, "CONNECT ","TCP/IP address too long, max: %d"
#define ERR_GET_HOST_BY_ADDR          19020,ERR_TYPE, "CONNECT ","Error getting TCP/IP host by address: '%s'"
#define ERR_TCPIP_HOSTNAME_TOO_LONG   19021,ERR_TYPE, "CONNECT ","TCP/IP host name too long, max: %d"
#define ERR_NO_MORE_MEMORY            19022,ERR_TYPE, "CONNECT ","Out of memory"
#define ERR_FREE_SHRD_MEMORY          19023,ERR_TYPE, "CONNECT ","Could not free shared memory"
#define ERR_CREATE_SHRD_MEM           19024,ERR_TYPE, "CONNECT ","Could not create named-shared-memory: '%s', rc = %d"
#define ERR_CANT_SND_TO_SOCKET        19025,ERR_TYPE, "CONNECT ","Connect packet send error, rc = %d"
#define ERR_PACK_SEND_SIZE_ERROR      19026,ERR_TYPE, "CONNECT ","Connect packet send size error, length: %d"
#define ERR_CONN_PACKET_REC_ERR       19027,ERR_TYPE, "CONNECT ","Connect packet receive error, rc = %d"
#define ERR_CONN_SERV_REJECT          19028,ERR_TYPE, "CONNECT ","Server rejected connection"
#define ERR_CONN_PACKET_GARBLED       19029,ERR_TYPE, "CONNECT ","Connect packet garbled: %d bytes"
#define ERR_PACKET_GARBLED            19030,ERR_TYPE, "CONNECT ","Received a garbled packet: %d bytes"
#define ERR_REC_MISSING_BYTES         19031,ERR_TYPE, "CONNECT ","Received a garbled packet, missing %d bytes, %d packets"
#define ERR_REC_NEW_MAXSENDLEN        19032,ERR_TYPE, "CONNECT ","New max. send length"
#define ERR_SOCKET_SND_ERR            19033,ERR_TYPE, "CONNECT ","Socket send error, rc = %d"
#define ERR_SOCKET_REC_ERR            19034,ERR_TYPE, "CONNECT ","Socket receive error, rc = %d"
#define ERR_CONN_BROCKEN              19035,ERR_TYPE, "CONNECT ","Connection broken"
#define ERR_ILL_PACKET_SIZE           19036,ERR_TYPE, "CONNECT ","Illegal packet size: %d"
#define ERR_DATABASE_NOT_STARTED      19037,ERR_TYPE, "CONNECT ","Database '%s' not running"
#define ERR_CANT_OPEN_UKT_SEM         19038,ERR_TYPE, "CONNECT ","Could not open kernel semaphore, rc = %d"
#define ERR_UNBAL_REQUEST_REPLY       19039,ERR_TYPE, "CONNECT ","Unbalanced request/reply"
#define ERR_POST_UKT_SEM              19040,ERR_TYPE, "CONNECT ","Posting kernel semaphore, rc = %d"
#define ERR_FILE_MAPPING_OPEN         19041,ERR_TYPE, "CONNECT ","Could not open file mapping object, rc = %d"
#define ERR_FILE_MAPPING_ACCESS       19042,ERR_TYPE, "CONNECT ","Could not access file mapping object, rc = %d"
#define ERR_OUT_OF_SOCK_BUF_MEM       19043,ERR_TYPE, "CONNECT ","Out of socket buffer (%s) memory"
#define ERR_XSERVER_NOT_ACTIVE        19044,ERR_TYPE, "CONNECT ","XSERVER might be inactive"
#define ERR_PROTOCOL_ERROR            19045,ERR_TYPE, "CONNECT ","Protocol error: '%s'"
#define ERR_CONN_TIMEOUT              19046,ERR_TYPE, "CONNECT ","Connect timeout"
#define ERR_CONN_REFUSED              19047,ERR_TYPE, "CONNECT ","Connection refused"
#define ERR_CREATING_REC_THREAD       19048,ERR_TYPE, "CONNECT ","Could not create 'ASYNC RECEIVE' thread, rc = %d"
#define ERR_KILL_REC_THREAD           19049,ERR_TYPE, "CONNECT ","Could not kill 'ASYNC RECEIVE' thread, rc = %d"
#define ERR_RESERVE_HANDLE_VALUES     19050,ERR_TYPE, "CONNECT ","Reserving handle values"
#define ERR_INVALID_PACKET_SIZE       19051,ERR_TYPE, "CONNECT ","Invalid packet size: %d"
#define ERR_COM_SERVER_OR_DB_NOT_ACC  19052,ERR_TYPE, "CONNECT ","XSERVER or database not accessible"
#define ERR_INVALID_REPL_PACKET_SIZE  19053,ERR_TYPE, "CONNECT ","Replied sizes invalid, Packet:%d-%d, Header:%d-%d, MinReply:%d"
#define ERR_INVALID_MAX_DATA_LEN      19054,ERR_TYPE, "CONNECT ","Invalid maximum data length: %d"
#define ERR_REPLY_TIMEOUT             19055,ERR_TYPE, "CONNECT ","Reply timeout"
#define ERR_WRONG_MESSCLASS_REPL      19056,ERR_TYPE, "CONNECT ","Got wrong message class: %d"
#define ERR_INVALID_MIN_REPL_SIZE     19056,ERR_TYPE, "CONNECT ","Invalid minimum reply size: %d"
#define ERR_INVALID_REPL_SIZE         19057,ERR_TYPE, "CONNECT ","Invalid reply size: %d"
#define ERR_LINGER                    19058,ERR_TYPE, "CONNECT ","Setting 'LINGER' socket option, rc = %d"
#define ERR_UTIL_ALREADY_CONN         19059,ERR_TYPE, "CONNECT ","Utility session is already in use"
#define ERR_SERV_BY_NAME_ERROR        19060,ERR_TYPE, "CONNECT ","Unknown TCP/IP service: %s"
#define ERR_LOADING_TCPIP_DLL         19061,ERR_TYPE, "CONNECT ","Could not load the SQLTCP-DLL, rc = %d"
#define ERR_LOADING_FUNCTION          19062,ERR_TYPE, "CONNECT ","Missing function '%s' in '%s'"
#define ERR_SOCKET_SELECT_ERR         19063,ERR_TYPE, "CONNECT ","Socket select error, rc = %d"
#define ERR_WRONG_TCPIP_VERSION       19064,ERR_TYPE, "CONNECT ","Wrong TCPIP-DLL version, (check the SQLTCPx.DLL)"

#define INFO_NO_TCPIP                 19080,INFO_TYPE,"CONNECT ","No TCP/IP connectivity available, (check the SQLTCPx.DLL)"
#define INFO_LOADING_DEFAULT_TCPIP    19081,INFO_TYPE,"CONNECT ","Loading default TCPIP-DLL, ( '%s')"
#define INFO_COM_TIMEOUT              19082,INFO_TYPE,"CONNECT ","Communication timeout"
#define INFO_WINSOCK_AND_DLL_VERSION  19083,INFO_TYPE,"CONNECT ","WINSOCK: %d.%d, SQLTCP-DLL: %d.%d.%d.%d"

#define IERR_GET_SHRD_MEM             19140,IERR_TYPE,"CONNECT ","Could not get named-shared-memory: '%s', rc = %d"
#define IERR_ILL_SWAP_TYPE            19141,IERR_TYPE,"CONNECT ","Illegal swap type: %d"
#define IERR_ILL_MAXSEGMENTSIZE       19142,IERR_TYPE,"CONNECT ","Illegal 'MaxSegmentSize': %d"
#define IERR_ILL_PACK_SIZE            19143,IERR_TYPE,"CONNECT ","Illegal packet size: %d"
#define IERR_STACK_OVERFLOW           19144,IERR_TYPE,"CONNECT ","Stack overflow T:%d"
#define IERR_NETW_NOT_RESTARTED       19145,IERR_TYPE,"CONNECT ","'%s' network not restarted"
#define IERR_FUNCTION_NOT_LOADED      19146,IERR_TYPE,"CONNECT ","Function '%s' not loaded."

#define WRN_NODE_PL_DBNAME_TOO_LONG   19170,WRN_TYPE, "CONNECT ","SERVERNODE + SERVERDB longer than %d"
#define WRN_WRONG_SERV_TYPE_LINE      19171,WRN_TYPE, "CONNECT ","illegal line '%s' in server type file ignored"
#define WRN_ILL_ARG_LENGTH            19172,WRN_TYPE, "CONNECT ","illegale argument length: %d"

//
// --- MESSAGES OUTPUT ---
//
#define ERR_WRITING_DIAG_FILE         19200,ERR_TYPE, "MESSAGES","Could not write to the diagnostic file: '%s', rc = %d"
#define ERR_WRITING_CON_MSG           19201,ERR_TYPE, "MESSAGES","Could not write to the console, rc = %d"
#define ERR_CANT_ACC_CONSOLE          19202,ERR_TYPE, "MESSAGES","Could not access CONSOLE, rc = %d"
#define ERR_CANT_OPEN_DIAG_FILE       19203,ERR_TYPE, "MESSAGES","Could not open diagnostic file: '%s', rc = %d"
#define ERR_DIAG_FILE_IN_USE          19204,ERR_TYPE, "MESSAGES","Diagnostic file '%s' is already used by another process, rc = %u"
#define ERR_WRONG_DIAG_FILE_NAME      19205,ERR_TYPE, "MESSAGES","Wrong diagnostic file name: '%s'"
#define ERR_WRITING_EVENT_LOG         19206,ERR_TYPE, "MESSAGES","Could not write to event log, rc = %d"
#define ERR_EVENT_LOG_FULL            19207,ERR_TYPE, "MESSAGES","Event log is full, rc = %d"
#define ERR_CANT_OPEN_EVENT_LOG       19208,ERR_TYPE, "MESSAGES","Could not open 'application event log', rc = %d"
#define ERR_WRONG_DIAG_FILE_SIZE      19209,ERR_TYPE, "MESSAGES","Wrong diagnostic file size: '%s', %d Pages"
#define ERR_WRITING_GUI_CON_MSG       19210,ERR_TYPE, "MESSAGES","Could not write to the GUI console, rc = %d"
#define ERR_WRITING_ERROR_DIAG_FILE   19211,ERR_TYPE, "MESSAGES","Could not write to the error diagnostic file, rc = %d"
#define ERR_READING_DIAG_FILE         19212,ERR_TYPE, "MESSAGES","Could not read from the diagnostic file: '%s', rc = %d"

//
// --- VIRTUAL PRINTER ---
//
#define ERR_PRINTER_ON                19240,ERR_TYPE, "PRINTER ","Printer handling"
#define ERR_OPEN_SPOOLFILE            19241,ERR_TYPE, "PRINTER ","Open spool file"
#define ERR_OPEN_PRINTER              19242,ERR_TYPE, "PRINTER ","Open printer"
#define ERR_WRITE_SPOOLFILE           19243,ERR_TYPE, "PRINTER ","Write spool file"
#define ERR_READ_SPOOLFILE            19244,ERR_TYPE, "PRINTER ","Read spool file"
#define ERR_WRITE_PRINTER             19245,ERR_TYPE, "PRINTER ","Write printer"

//
// --- SQLEXEC/SQLAT ---
//
#define ERR_SYNC_SAME                 19260,ERR_TYPE, "EXECUTE ","Synchronous start of the same session"
#define ERR_SYNC_END                  19261,ERR_TYPE, "EXECUTE ","Undefined end of a synchronous session, rc = %lu"
#define ERR_SYNC_START                19262,ERR_TYPE, "EXECUTE ","Synchronous start of a session, rc = %lu"
#define ERR_START_SESSION             19263,ERR_TYPE, "EXECUTE ","Could not start a new session, rc = %lu"
#define ERR_END_SESSION               19264,ERR_TYPE, "EXECUTE ","Could not end session, rc = %lu"
#define ERR_CMD_LENGTH                19265,ERR_TYPE, "EXECUTE ","Command length: %u"
#define ERR_CANNOT_EXECUTE_CMD        19266,ERR_TYPE, "EXECUTE ","Could not execute command, rc = %lu"
#define ERR_NO_CMD                    19267,ERR_TYPE, "EXECUTE ","No command to execute"
#define ERR_SET_STD_HANDLE            19268,ERR_TYPE, "EXECUTE ","Could not set standard handle, rc = %d"
#define ERR_CREATE_PIPE               19269,ERR_TYPE, "EXECUTE ","Could not create 'BATCH' pipe, rc = %d"
#define ERR_CREATING_BAT_THREAD       19270,ERR_TYPE, "EXECUTE ","Could not create 'BATCH' thread, rc = %d"
#define ERR_RESUMING_BAT_THREAD       19271,ERR_TYPE, "EXECUTE ","Could not resume 'BATCH' thread, rc = %d"
#define ERR_READ_PIPE                 19272,ERR_TYPE, "EXECUTE ","Could not read from 'BATCH' pipe, rc = %d"
#define ERR_CREATING_BAT_DIAG_FILE    19273,ERR_TYPE, "EXECUTE ","Could not create 'BATCH' diagnostic file, rc = %d"
#define ERR_WRONG_TIME_VALUE          19274,ERR_TYPE, "EXECUTE ","Wrong time value: %u:%u"

//
// --- SQLARGS ---
//
#define ERR_UNKNOWN_ERROR             19280,ERR_TYPE, "ARGS    ","Unknown error"
#define ERR_NO_VALID_OPTION           19281,ERR_TYPE, "ARGS    ","No valid option! Use -h to get help."
#define ERR_NO_COMP_SPECIFIED         19282,ERR_TYPE, "ARGS    ","No component specified"
#define ERR_WRONG_OPTION_SEQUENCE     19283,ERR_TYPE, "ARGS    ","Wrong option sequence! Use -h to get help."
#define ERR_MISSING_QUOTE             19284,ERR_TYPE, "ARGS    ","Missing quote in userid or password"

//
// --- VIRT. FILE ---
//
#define ERR_VF_BAD_FILENO             19300,ERR_TYPE, "IO      ","Invalid file number"
#define ERR_VF_ILL_FILE_DESC          19301,ERR_TYPE, "IO      ","Illegal file description"
#define ERR_VF_DELETE                 19302,ERR_TYPE, "IO      ","Could not delete file"
#define ERR_VF_NO_REG_FILE            19303,ERR_TYPE, "IO      ","Could not delete non-regular files"
#define ERR_FILE_EXIST                19304,ERR_TYPE, "IO      ","File already exists"
#define ERR_FILE_SHARING_VIOLATION    19305,ERR_TYPE, "IO      ","The file '%s' is already in use"
#define ERR_FREE_BUFPOOL_COUNT_DIFF   19306,ERR_TYPE, "IO      ","Free Buffer pool: block count error"
#define ERR_ILL_APPEND_DEVICE         19307,ERR_TYPE, "IO      ","Illegal device for direction append"
#define ERR_ILL_DIREC                 19308,ERR_TYPE, "IO      ","Illegal direction"
#define ERR_ILL_FILE_DESC             19309,ERR_TYPE, "IO      ","Illegal file description"
#define ERR_ILL_FILE_SPEC             19310,ERR_TYPE, "IO      ","Illegal specification"
#define ERR_ILL_DATA_SIZE             19311,ERR_TYPE, "IO      ","Illegal data size"
#define ERR_ILL_NEXT_REC_LEN          19312,ERR_TYPE, "IO      ","Length of next record is out of range"
#define ERR_ILL_REC_LEN               19313,ERR_TYPE, "IO      ","Illegal record length"
#define ERR_ILL_RESOURCE              19314,ERR_TYPE, "IO      ","Illegal resource"
#define ERR_MAX_REC                   19315,ERR_TYPE, "IO      ","Record too big   (> max record length)"
#define ERR_MIN_REC                   19316,ERR_TYPE, "IO      ","Record too small (< min record length)"
#define ERR_NO_FREE_FILE_DESCRIPTOR   19317,ERR_TYPE, "IO      ","No free file descriptor found"
#define ERR_TAPE_END_OF_MEDIA         19318,ERR_TYPE, "IO      ","The end-of-tape marker was reached during an operation on '%s'"
#define ERR_TAPE_FILE_SET_MARK        19319,ERR_TYPE, "IO      ","A filemark or setmark was reached during an operation on '%s'"
#define ERR_TAPE_NOT_PATITIONED       19320,ERR_TYPE, "IO      ","The tape partition information could not be found on '%s'"
#define ERR_TAPE_NO_MEDIA_IN_DRIVE    19321,ERR_TYPE, "IO      ","There is no media in drive '%s'"
#define ERR_TAPE_MEDIA_CHANGED        19322,ERR_TYPE, "IO      ","Media changed in drive '%s'"
#define ERR_MEDIA_WRITE_PROTECTED     19323,ERR_TYPE, "IO      ","Could not access '%s', the media is write protected"
#define ERR_TAPE_WRITE_MARK           19324,ERR_TYPE, "IO      ","Could not write filemark or setmark on '%s'"
#define ERR_OPEN                      19325,ERR_TYPE, "IO      ","Could not open file/tape/pipe '%s', rc = %d"
#define ERR_READ                      19326,ERR_TYPE, "IO      ","file/tape/pipe read error, rc = %d"
#define ERR_WRITE                     19327,ERR_TYPE, "IO      ","file/tape/pipe write error, rc = %d"
#define ERR_SEEK                      19328,ERR_TYPE, "IO      ","file seek error, rc = %d"
#define ERR_REWIND_TAPE               19329,ERR_TYPE, "IO      ","rewind tape error, rc = %d"
#define ERR_DEVICE_NOT_READY          19330,ERR_TYPE, "IO      ","Could not access '%s', device not ready"
#define ERR_TAPE_PARAM                19331,ERR_TYPE, "IO      ","Could not get/set tape parameters, rc = %d"
#define ERR_TAPE_LOCK_UNLOCK          19332,ERR_TYPE, "IO      ","Could not lock/unlock tape, rc = %d"
#define ERR_TAPE_LOAD_UNLOAD          19332,ERR_TYPE, "IO      ","Could not load/unload tape, rc = %d"
#define ERR_DISK_FULL                 19333,ERR_TYPE, "IO      ","Error on '%s', not enough space on disk"
#define ERR_WRONG_PATH                19334,ERR_TYPE, "IO      ","Wrong path '%s'"
#define ERR_WRONG_FILE_DEVICE_NAME    19335,ERR_TYPE, "IO      ","Wrong file or device name '%s'"
#define ERR_BLOCK_SIZE_MISMATCH       19336,ERR_TYPE, "IO      ","LengthGiven: %d, LenghtWanted: %d"

#define INFO_TAPE_WRONG_PART_CNT      19379,INFO_TYPE,"IO      ","Current tape has more then one partition"

//
// --- VIRTUAL TERMINAL ---
//
#define ERR_VT_WRONG_WINDOW_SIZE      19381,ERR_TYPE, "TERMINAL","The window size is to large"
#define ERR_VT_GET_VIDEO_MODE         19382,ERR_TYPE, "TERMINAL","Could not examine Video mode, rc = %hu"
#define ERR_VT_OPEN_KEYBOARD          19383,ERR_TYPE, "TERMINAL","Could not examine Keyboard, rc = %lu"
#define ERR_VT_CANT_CHANGE_CURSOR     19384,ERR_TYPE, "TERMINAL","Could not change cursor type, rc = %hu"
#define ERR_VT_GET_KBD_STATUS         19385,ERR_TYPE, "TERMINAL","Could not get keyboard status, rc = %hu"
#define ERR_VT_SET_KBD_STATUS         19386,ERR_TYPE, "TERMINAL","Could not set keyboard status, rc = %hu"
#define ERR_VT_CREATE_THREAD          19387,ERR_TYPE, "TERMINAL","Could not create thread, rc = %lu"
#define ERR_VT_RESUME_THREAD          19388,ERR_TYPE, "TERMINAL","Could not resume thread, rc = %lu"
#define ERR_VT_KILL_THREAD            19389,ERR_TYPE, "TERMINAL","Could not kill thread, rc = %lu"
#define ERR_VT_OPEN_MOUSE             19390,ERR_TYPE, "TERMINAL","Could not open mouse port, rc = %lu"
#define ERR_VT_CLOSE_MOUSE            19391,ERR_TYPE, "TERMINAL","Could not close mouse port, rc = %lu"

#define IERR_VT_WRONG_MAP_SIZE        19399,IERR_TYPE,"TERMINAL","Wrong map size"

//
// --- SQLUSER ---
//
#define ERR_CANNOT_OPEN_XUSER_FILE    19400,ERR_TYPE, "XUSER   ","Could not open USER file, rc = %lu"
#define ERR_CANNOT_CLOSE_XUSER_FILE   19401,ERR_TYPE, "XUSER   ","Could not close USER file"
#define ERR_CANNOT_READ_XUSER_FILE    19402,ERR_TYPE, "XUSER   ","Could not read USER file, rc = %lu"
#define ERR_CANNOT_SEEK_XUSER_FILE    19403,ERR_TYPE, "XUSER   ","Could not seek in USER file, rc = %lu"
#define ERR_CREATE_XUSER_FILE         19404,ERR_TYPE, "XUSER   ","Could not create USER file, rc = %lu"
#define ERR_DELETE_XUSER_FILE         19405,ERR_TYPE, "XUSER   ","Could not delete USER file, rc = %lu"
#define ERR_ILLEGAL_USER_ENTRY        19406,ERR_TYPE, "XUSER   ","Illegal USER entry, page no = %lu"
#define ERR_ILLEGAL_USER_INDEX        19407,ERR_TYPE, "XUSER   ","Illegal USER index, index = %d"
#define ERR_BLANK_USERKEY             19408,ERR_TYPE, "XUSER   ","Blank user key not allowed"
#define ERR_NO_XUSER_ENTRY_FOUND      19409,ERR_TYPE, "XUSER   ","No entry found"
#define ERR_NO_SPACE_LEFT             19410,ERR_TYPE, "XUSER   ","Space for USER entries exhausted"
#define ERR_NO_XUSER_FILE             19411,ERR_TYPE, "XUSER   ","Could not find USER file"
#define ERR_WRONG_XUSER_FILE_LENGTH   19412,ERR_TYPE, "XUSER   ","Could not read/write the correct USER file length: %lu"
#define ERR_READ_ERROR_XUSER_EUSER    19413,ERR_TYPE, "XUSER   ","Could not read effective USER"
#define ERR_CANNOT_WRITE_XUSER_FILE   19414,ERR_TYPE, "XUSER   ","Could not write USER file, rc = %lu"
#define ERR_DIFFERENT_SIDS            19415,ERR_TYPE, "XUSER   ","Incorrect USER data owner"
#define ERR_READ_ERROR_XUSER_PAGE     19416,ERR_TYPE, "XUSER   ","Unknown USER page"
#define ERR_READ_XUSER_REG_DATA       19417,ERR_TYPE, "XUSER   ","Could not read USER data, rc = %d"
#define ERR_WRITE_XUSER_REG_DATA      19418,ERR_TYPE, "XUSER   ","Could not write USER data, rc = %d"
#define ERR_REMOVE_XUSER_REG_DATA     19419,ERR_TYPE, "XUSER   ","Could not remove USER data"
#define ERR_WRONG_XUSER_REG_DATA_LEN  19420,ERR_TYPE, "XUSER   ","Wrong USER data length"
#define ERR_WRITE_CHAR_SET_OPT_VALS   19421,ERR_TYPE, "XUSER   ","Could not write CHARACTERSET option values, rc = %d"
#define ERR_READ_CHAR_SET_OPT_VALS    19422,ERR_TYPE, "XUSER   ","Could not read CHARACTERSET option values, rc = %d"
#define ERR_WRITE_USER_DIAG_OPT_VALS  19423,ERR_TYPE, "XUSER   ","Could not write diagnostic file option values, rc = %d"
#define ERR_READ_USER_DIAG_OPT_VALS   19424,ERR_TYPE, "XUSER   ","Could not read diagnostic file  option values, rc = %d"
#define ERR_WRITE_SQLOPT_OPT_VALS     19425,ERR_TYPE, "XUSER   ","Could not write SQLOPT option values, rc = %d"
#define ERR_READ_SQLOPT_OPT_VALS      19426,ERR_TYPE, "XUSER   ","Could not read SQLOPT option values, rc = %d"
#define ERR_SQLABORT                  19427,ERR_TYPE, "XUSER   ","Component aborting, PID: 0x%X"

//
// --- XPARAM ---
//
#define ERR_CANNOT_OPEN_XPARAM_FILE   19450,ERR_TYPE, "XPARAM  ","Could not open xparam file"
#define ERR_NO_XPARAM_FILE            19451,ERR_TYPE, "XPARAM  ","Could not find xparam file"
#define ERR_BLANK_XP_KEY              19452,ERR_TYPE, "XPARAM  ","Blank keys not allowed"
#define ERR_CANNOT_WRITE_XP_KEY       19453,ERR_TYPE, "XPARAM  ","Could not write key, rc = %d"
#define ERR_CANNOT_WRITE_XP_VALUE     19454,ERR_TYPE, "XPARAM  ","Could not write value, rc = %d"
#define ERR_WRITE_ERROR               19455,ERR_TYPE, "XPARAM  ","Write error"
#define ERR_CANNOT_READ_XP_KEY        19456,ERR_TYPE, "XPARAM  ","Could not read key, rc = %d"
#define ERR_CANNOT_READ_XP_VALUE      19457,ERR_TYPE, "XPARAM  ","Could not read value, rc = %d"
#define ERR_READ_ERROR                19458,ERR_TYPE, "XPARAM  ","Read error"
#define ERR_CANNOT_FIND_START_POINT   19459,ERR_TYPE, "XPARAM  ","Could not find start point, rc = %d"
#define ERR_CANNOT_FIND_PREV_ENTRY    19460,ERR_TYPE, "XPARAM  ","Could not find previous entry, rc = %d"
#define ERR_CANNOT_FIND_ACT_ENTRY     19461,ERR_TYPE, "XPARAM  ","Could not find actual entry, rc = %d"
#define ERR_EOF_REACHED               19462,ERR_TYPE, "XPARAM  ","End of file reached"
#define ERR_PATH_TOO_LONG_FOR_XPF     19463,ERR_TYPE, "XPARAM  ","Path too long for XPARAM file"
#define ERR_ACCESS_XPARAM_FILE        19464,ERR_TYPE, "XPARAM  ","Could not access xparam file, rc = %d"
#define ERR_CANNOT_CREATE_XP_FILE     19465,ERR_TYPE, "XPARAM  ","Could not create xparam file"
#define ERR_CANNOT_WRITE_XP_FILE      19466,ERR_TYPE, "XPARAM  ","Could not write to xparam file"
#define ERR_UNDEFINED_OPEN_MODE       19467,ERR_TYPE, "XPARAM  ","Undefined open mode of xparam file"

//
// --- SECURITY ---
//
#define ERR_SET_SYNC_ACCESS           19480,ERR_TYPE, "SECURITY","Could not set synchronize access. Location: %d, rc = %d"
#define ERR_GET_SEC_DESC              19481,ERR_TYPE, "SECURITY","Could not get security descriptor, rc = %d"
#define ERR_GEN_SEC_DESC_COMMON       19482,ERR_TYPE, "SECURITY","Creating security descriptor. Location: %d, rc = %d"
#define ERR_GEN_SEC_DESC_SERVICE      19483,ERR_TYPE, "SECURITY","Creating 'Service' security descriptor. Location: %d, rc = %d"
#define ERR_SET_OBJ_SEC               19484,ERR_TYPE, "SECURITY","Could not set kernel object security, rc = %d"
#define ERR_GET_TOKEN_INFO            19485,ERR_TYPE, "SECURITY","Could not get token information. Location: %d, rc = %d"
#define ERR_GET_USER_NAME             19486,ERR_TYPE, "SECURITY","Could not get user name. Location: %d, rc = %d"
#define ERR_SET_FILE_OWNER            19487,ERR_TYPE, "SECURITY","Could not set file owner, Location: %d, rc = %d"
#define ERR_USER_IS_ADMIN             19488,ERR_TYPE, "SECURITY","Could not determine admin. privilege. Location: %d, rc = %d"
#define ERR_ADD_ADABAS_ADMIN_GROUP    19489,ERR_TYPE, "SECURITY","Could not establish 'ADABAS Admins' group. Location: %d, rc = %d"
#define ERR_GET_DOMAIN_NAME           19490,ERR_TYPE, "SECURITY","Could not get domain name. Location: %d, rc = %d"
//
// --- NT SERVICE ---
//
#define ERR_OPEN_SERVICE_NO_PERM      19520,ERR_TYPE, "SERVICE ","Could not open service manager (missing permission)"
#define ERR_OPEN_SERVICE_MANAGER      19521,ERR_TYPE, "SERVICE ","Could not open the service manager, rc = %d"
#define ERR_CLOSE_SERVICE_MANAGER     19522,ERR_TYPE, "SERVICE ","Could not close the service manager, rc = %d"
#define ERR_SERVICE_UNKNOWN           19523,ERR_TYPE, "SERVICE ","Service '%s' not installed"
#define ERR_INSTALL_SERVICE           19524,ERR_TYPE, "SERVICE ","Creating service '%s' failed, rc = %d"
#define ERR_REMOVE_SERVICE            19525,ERR_TYPE, "SERVICE ","Removing service '%s' failed, rc = %d"
#define ERR_START_SERVICE             19526,ERR_TYPE, "SERVICE ","Starting service '%s' failed, rc = %d"
#define ERR_SET_SERVICE_STATUS        19527,ERR_TYPE, "SERVICE ","Could not set the services status, rc = %d"
#define ERR_SERVICE_ERROR             19528,ERR_TYPE, "SERVICE ","Could not install/remove service, rc = %d"
#define ERR_CREAT_SERVICE_NO_ACCESS   19529,ERR_TYPE, "SERVICE ","Could not create/update/delete service entry, access denied"

#define INFO_SERVICE_INSTALLED        19553,INFO_TYPE,"SERVICE ","Service '%s' installed successfully"
#define INFO_SERVICE_REMOVED          19554,INFO_TYPE,"SERVICE ","Service '%s' removed successfully"
#define INFO_SERVICE_STARTED          19555,INFO_TYPE,"SERVICE ","Service '%s' started successfully"
#define INFO_SERVICE_ALREADY_INST     19556,INFO_TYPE,"SERVICE ","Service '%s' is already installed"
#define INFO_SERVICE_NOT_INSTALLED    19557,INFO_TYPE,"SERVICE ","Service '%s' is not installed"
#define INFO_UPDATING_SERVICE         19558,INFO_TYPE,"SERVICE ","DBROOT has changed, updating service: '%s'"
#define INFO_SERVICE_DELETE_MARKED    19559,INFO_TYPE,"SERVICE ","Service has been marked for delete"
#define INFO_SERVICE_NOT_INST_CORR    19560,INFO_TYPE,"SERVICE ","Service has not been installed correctly"
#define INFO_SERVERDB_SERVICE_AL_INST 19561,INFO_TYPE,"SERVICE ","This gateway name is already used by a SERVERDB"

//
// --- COMMON USER ---
//
#define ERR_DBROOT_NOT_SET            19600,ERR_TYPE, "        ","DBROOT must be set"
#define ERR_WRONG_DBROOT_PATH         19601,ERR_TYPE, "        ","Unknown path: DBROOT=%s"
#define ERR_CREATING_SEM              19602,ERR_TYPE, "IPC     ","Error on creating semaphore: '%s', rc = %d"
#define ERR_OPENING_SEM               19603,ERR_TYPE, "IPC     ","Error on opening semaphore: '%s', rc = %d   "
#define ERR_WAITING_SEM               19604,ERR_TYPE, "IPC     ","Error while waiting for semaphore: '%s', rc = %d"
#define ERR_POSTING_SEM               19605,ERR_TYPE, "IPC     ","Error on posting semaphore: '%s', rc = %d"
#define ERR_CLOSING_SEM               19606,ERR_TYPE, "IPC     ","Error on closing semaphore: '%s', rc = %d"
#define ERR_ALLOC_MEMORY              19607,ERR_TYPE, "MEMORY  ","Could not allocate memory, rc = %d"
#define ERR_CANT_GIVE_SHRD_MEM        19608,ERR_TYPE, "MEMORY  ","Could not share memory, rc = %d"
#define ERR_GET_FILE_STATUS           19609,ERR_TYPE, "IO      ","Could not get file status, rc = %d"
#define ERR_GET_FILE_TYPE             19610,ERR_TYPE, "IO      ","Could not get file type, rc = %d"
#define ERR_QUERY_FILE_TYPE           19611,ERR_TYPE, "IO      ","Query file-type error for '%s', rc = %d"
#define ERR_CREATING_QUEUE_MAILSLOT   19612,ERR_TYPE, "IPC     ","Error on creating queue/mailslot '%s', rc = %d"
#define ERR_OPENING_QUEUE_MAILSLOT    19613,ERR_TYPE, "IPC     ","Error on opening queue/mailslot '%s', rc = %d"
#define ERR_WRITING_QUEUE_MAILSLOT    19614,ERR_TYPE, "IPC     ","Error while writing to queue/mailslot, rc = %d"
#define ERR_READING_QUEUE_MAILSLOT    19615,ERR_TYPE, "IPC     ","Error while reading from queue/mailslot, rc = %d"
#define ERR_WRONG_REQ_BUF_SIZE        19616,ERR_TYPE, "IPC     ","Wrong request buffer size: %u"
#define ERR_LOOKUP_ACCOUNT_NAME       19617,ERR_TYPE, "        ","Could not find account name, Location: %d, rc = %d"
#define ERR_CANT_ALLOC_HEAP_MEMORY    19618,ERR_TYPE, "MEMORY  ","Could not allocate memory from the heap, rc = %u"
#define ERR_SERVER_NODE_UNKNOWN       19619,ERR_TYPE, "CONNECT ","Server node '%s' not available"
#define ERR_ACCESS_DENIED_ON_XX       19620,ERR_TYPE, "SECURITY","Access on '%s' denied"
#define ERR_ACCESS_DENIED             19621,ERR_TYPE, "SECURITY","Access denied"
#define ERR_SET_EXIT_HANDLER_FAILED   19622,ERR_TYPE, "EXCEPT  ","Set exit handler failed, rc = %d"
#define ERR_DB_SERVICE_NOT_INSTALLED  19623,ERR_TYPE, "SERVICE ","Service '%s' not installed"
#define ERR_DB_NOT_STARTED            19624,ERR_TYPE, "DBSTATE ","Database '%s' has not been started"
#define ERR_WRONG_DB_VERSION          19625,ERR_TYPE, "VERSION ","Incompatible version of SERVERDB"
#define ERR_COMMAND_TIMEOUT           19626,ERR_TYPE, "CONNECT ","Command timeout"
#define ERR_CMD_LINE_TOO_LONG         19627,ERR_TYPE, "EXECUTE ","Command line too long"
#define ERR_TIMEOUT_NO_DB_RESPONSE    19628,ERR_TYPE, "CONNECT ","Time out, SERVERDB is not responding"
#define ERR_STARTING_FUNC_FOM_DLL     19629,ERR_TYPE, "        ","Could not start '%s' from '%s', rc = %d"
#define ERR_SERVICE_DB_LOCKED         19630,ERR_TYPE, "SERVICE ","Service database has been locked by another process"
#define ERR_WRONG_GW_VERSION          19631,ERR_TYPE, "VERSION ","Incompatible version of gateway"
#define ERR_DB_OR_GW_NOT_STARTED      19632,ERR_TYPE, "STATE   ","'%s' has not been started"

#define IERR_UNKNOWN_RET_CODE         19675,IERR_TYPE,"        ","Unknown return code"
#define IERR_INIT_CALLED_TWICE        19676,IERR_TYPE,"INIT    ","RTE-Initialize called twice"
#define IERR_CANT_FREE_MEMORY         19677,IERR_TYPE,"MEMORY  ","Could not free memory, rc = %d"
#define IERR_CANT_FREE_HEAP_MEMORY    19678,IERR_TYPE,"MEMORY  ","Could not free memory of the heap, rc = %u"
#define IERR_CANT_SUBSET_MEMORY       19679,IERR_TYPE,"MEMORY  ","Could not subset memory, rc = %u"

#define INFO_COMPONENT_MESSAGE        19699,INFO_TYPE,"DIALCOMP","%s"

//
// --- XSERVER ---
//
#define ERR_XSER_LIS_SOCK_OPEN        19700,ERR_TYPE, "XSERVER ","Listen socket open error, rc = %d"
#define ERR_XSER_SET_BUF_SIZE         19701,ERR_TYPE, "XSERVER ","Could not set socket buffer (%s), rc = %d"
#define ERR_XSER_SOCK_ADDR_IN_USE     19702,ERR_TYPE, "XSERVER ","Socket address already in use"
#define ERR_XSER_BIND_ERROR           19703,ERR_TYPE, "XSERVER ","Bind error, rc = %d"
#define ERR_XSER_LISTEN_ERROR         19704,ERR_TYPE, "XSERVER ","Listen error, rc = %d"
#define ERR_XSER_ACCEPT_ERROR         19705,ERR_TYPE, "XSERVER ","Accept error, rc = %d"
#define ERR_XSER_KEEP_ALIV_ERROR      19706,ERR_TYPE, "XSERVER ","'setsockopt' (KEEPALIVE), rc = %d"
#define ERR_XSER_CREATING_THREAD      19707,ERR_TYPE, "XSERVER ","Error creating %s thread, rc = %d"
#define ERR_XSER_RESUMING_THREAD      19708,ERR_TYPE, "XSERVER ","Error resuming %s thread, rc = %d"
#define ERR_XSER_SET_THRD_PRIO_ERROR  19709,ERR_TYPE, "XSERVER ","Error setting thread priority (TID:0x%X), rc = %d"
#define ERR_XSER_REC_REQ_PACKET_ERR   19710,ERR_TYPE, "XSERVER ","Receive request packet error"
#define ERR_XSER_ILL_FRST_MESS_CLASS  19711,ERR_TYPE, "XSERVER ","Illegal first message class: %d"
#define ERR_XSER_SEND_REQ_PACKET_ERR  19712,ERR_TYPE, "XSERVER ","Sending request packet error, rc = %d"
#define ERR_XSER_ILL_PACKET_SIZE      19713,ERR_TYPE, "XSERVER ","Illegal packet size: %d, Ref:%d"
#define ERR_XSER_MAX_CONNECTIONS      19714,ERR_TYPE, "XSERVER ","Max. connections reached"
#define ERR_XSER_STOPPED_EV_LOG       19715,ERR_TYPE, "XSERVER ","XSERVER has stopped unexpectedly, (view 'Application Event Log')"
#define ERR_XSER_STOPPED_DIAG         19716,ERR_TYPE, "XSERVER ","XSERVER has stopped unexpectedly, (view 'XSERVER Diagnostic File')"
#define ERR_XSER_NOT_STARTED          19717,ERR_TYPE, "XSERVER ","XSERVER not active"
#define ERR_XSER_ALREADY_RUNNING      19718,ERR_TYPE, "XSERVER ","XSERVER is already running!"
#define ERR_XSER_CANNOT_START         19719,ERR_TYPE, "XSERVER ","Starting XSERVER, rc = %d"
#define ERR_XSER_CANNOT_STOP          19720,ERR_TYPE, "XSERVER ","Terminating XSERVER, rc = %d"
#define ERR_XSER_CANNOT_INIT_TCPIP    19721,ERR_TYPE, "XSERVER ","No TCP/IP connectivity available, (check the SQLTCP-DLL)"
#define ERR_XSER_GET_SET_HANDLE_DATA  19722,ERR_TYPE, "XSERVER ","Could not get or set handle data"
#define ERR_XSER_LOCK_UNLOCK_HANDLE   19723,ERR_TYPE, "XSERVER ","Could not lock or unlock handle"
#define ERR_XSER_FREE_HANDLE          19724,ERR_TYPE, "XSERVER ","Could not free handle"
#define ERR_XSER_INFO_REQUEST         19725,ERR_TYPE, "XSERVER ","Info request: %s"
#define ERR_XSER_CONN_REQ             19726,ERR_TYPE, "XSERVER ","Connect request: %s"
#define ERR_XSER_RECV_PACKET          19727,ERR_TYPE, "XSERVER ","Receive packet, Ref:%d - %s"
#define ERR_XSER_SEND_PACKET          19728,ERR_TYPE, "XSERVER ","Send packet, Ref:%d - %s"
#define ERR_XSER_REQUEST              19729,ERR_TYPE, "XSERVER ","Request, Ref:%d - %s"
#define ERR_XSER_RECEIVE              19730,ERR_TYPE, "XSERVER ","Receive, Ref:%d - %s"
#define ERR_XSER_WRONG_PACKET_SIZE    19731,ERR_TYPE, "XSERVER ","SERVERDB: %s, packet size too small, min.: %d"
#define ERR_XSER_WRONG_VERSION        19732,ERR_TYPE, "XSERVER ","Wrong XSERVER version installed! Please reinstall the XSERVER.\r\n   Installed:\t'%s'\r\n   Expected:\t'%s'"
#define ERR_XSER_WRONG_REQ_REQUEST    19733,ERR_TYPE, "XSERVER ","Wrong requestor thread request"
#define ERR_XSER_SYNC_ACCESS_DENIED   19734,ERR_TYPE, "SECURITY","Synchronize access denied, refusing connect request"
#define ERR_XSER_OPEN_PROCCESS        19735,ERR_TYPE, "SECURITY","Could not open proccess, rc = %d"
#define ERR_XSER_DISTRIB_CONN_REQ     19736,ERR_TYPE, "XSERVER ","Distrib. connect: %s"
#define ERR_XSER_SERVERDB_DIED        19737,ERR_TYPE, "XSERVER ","Connection broken, Ref:%d, SERVERDB '%s' died"
#define ERR_XSER_RECV_DISTRIB_PACKET  19738,ERR_TYPE, "XSERVER ","Receive packet (distrib), Ref:%d, PeerRef:%d - %s"
#define ERR_XSER_SEND_DISTRIB_PACKET  19739,ERR_TYPE, "XSERVER ","Send packet (distrib), Ref:%d, PeerRef:%d - %s"
#define ERR_XSER_RECV_PROTOCOL        19740,ERR_TYPE, "XSERVER ","Protocol error, (%s), Ref:%d"
#define ERR_XSER_ILL_MESS_CLASS       19741,ERR_TYPE, "XSERVER ","Illegal message class: %d, Ref:%d"
#define ERR_XSER_SEND_ACKN            19742,ERR_TYPE, "XSERVER ","Send acknowledge, Ref:%d - %s"
#define ERR_XSER_RECV_ACKN            19743,ERR_TYPE, "XSERVER ","Receive acknowledge, Ref:%d - %s"
#define ERR_XSER_RELEASING_SOCKET     19744,ERR_TYPE, "XSERVER ","Releasing socket - %s"
#define ERR_XSER_USER_MISSING_PRIV    19745,ERR_TYPE, "XSERVER ","User '%s' - missing privilege to run service"



#define INFO_XSER_STARTED             19760,INFO_TYPE,"XSERVER ","XSERVER started"
#define INFO_XSER_STOPPED             19761,INFO_TYPE,"XSERVER ","XSERVER stopped"
#define INFO_XSER_SERV_PORT           19762,INFO_TYPE,"XSERVER ","Service port is %d"
#define INFO_XSER_OP_LISEN_SOCKET     19763,INFO_TYPE,"XSERVER ","Opened listen socket %d"
#define INFO_XSER_SEGMENT_SIZES       19764,INFO_TYPE,"XSERVER ","Segment sizes, sd: %d, min: %d, max: %d"
#define INFO_XSER_LISTEN_ON_SOCKET    19765,INFO_TYPE,"XSERVER ","Listening on socket %d"
#define INFO_XSER_ACCEPTING           19766,INFO_TYPE,"XSERVER ","Accepting ..."
#define INFO_XSER_ACCEPT_CONNECTION   19767,INFO_TYPE,"XSERVER ","Accepted connection, socket: %d"
#define INFO_XSER_SERVER_STARTED      19768,INFO_TYPE,"XSERVER ","server thread started, TID:0x%X"
#define INFO_XSER_SERVER_EXITING      19769,INFO_TYPE,"XSERVER ","server thread exiting, TID:0x%X"
#define INFO_XSER_REC_CONN_PACKET     19770,INFO_TYPE,"XSERVER ","Received connect packet"
#define INFO_XSER_REC_REQ_PACKET      19771,INFO_TYPE,"XSERVER ","Rec. request packet - Class. %d, MyRef: %d, PeerRef: %d, Service: %d, SERVERDB '%s', ClientDB: '%s'"
#define INFO_XSER_ENTER_DATA_TRANS    19772,INFO_TYPE,"XSERVER ","Entering data transmission, TID:0x%X"
#define INFO_XSER_READ_REQ_PACKET     19773,INFO_TYPE,"XSERVER ","Request packet read ( %d bytes ), Ref:%d"
#define INFO_XSER_REQUEST_RETURNED    19774,INFO_TYPE,"XSERVER ","Local request returned, Ref:%d, CommState = %d"
#define INFO_XSER_RECEIVE_RETURNED    19775,INFO_TYPE,"XSERVER ","Local receive returned, Ref:%d, CommState = %d"
#define INFO_XSER_SEND_REPLY_PACKET   19776,INFO_TYPE,"XSERVER ","Reply packet send ( %d bytes ), Ref:%d"
#define INFO_XSER_CANCEL_REQUESTED    19777,INFO_TYPE,"XSERVER ","Cancel request, client reference: %d"
#define INFO_XSER_CANCEL_RETURNING    19778,INFO_TYPE,"XSERVER ","Cancel returning, CommState = %d"
#define INFO_XSER_APPL_CONNECTED      19779,INFO_TYPE,"XSERVER ","'%s' connected to '%s', T:%d"
#define INFO_XSER_APPL_DISCONNECT     19780,INFO_TYPE,"XSERVER ","'%s' disconnect from '%s', T:%d"
#define INFO_XSER_REC_INFO_REQUEST    19781,INFO_TYPE,"XSERVER ","Received info request, SERVERDB: %s"
#define INFO_XSER_REPLY_INFO_REQUEST  19782,INFO_TYPE,"XSERVER ","Info req. reply, SERVERDB: %s, PacketSize: %d, MaxDataLen: %d, MinReply:%d"
#define INFO_XSER_REC_CONN_REQ        19783,INFO_TYPE,"XSERVER ","Connect req. received, SERVERDB: %s, SenderRef: %d, PacketSize: %d, MaxDataLen: %d"
#define INFO_XSER_CONN_REQ            19784,INFO_TYPE,"XSERVER ","Connected to SERVERDB: %s, Ref: %d, MaxCmdDataLen: %d, ConnInfoHandle:%d"
#define INFO_XSER_CONN_KILLED         19785,INFO_TYPE,"XSERVER ","Connect killed: SERVERDB: %s, Ref: %d"
#define INFO_XSER_ABORTS              19786,INFO_TYPE,"XSERVER ","XSERVER aborting"
#define INFO_XSER_ABORTS_DIAG_INFO    19787,INFO_TYPE,"XSERVER ","XSERVER aborting,\r\n   (view diagnostic file: '%s')"
#if defined(_WIN32)
 #define INFO_XSER_EXCEP_SIG_KILL     19788,INFO_TYPE,"XSERVER ","External kill process signal received"
#else
 #define INFO_XSER_EXCEP_SIG_KILL     19788,INFO_TYPE,"XSERVER ","External kill process signal received or out of OS/2 system swap space"
#endif
#define INFO_XSER_DUMP_REQUESTED      19789,INFO_TYPE,"XSERVER ","Dump request, client reference: %d"
#define INFO_XSER_END_OF_DATA_TRANS   19790,INFO_TYPE,"XSERVER ","End of data transmission, TID:0x%X"
#define INFO_XSER_STARTED_VERSION     19791,INFO_TYPE,"XSERVER ","XSERVER started, '%s'"
#define INFO_XSER_STOPPED_VERSION     19792,INFO_TYPE,"XSERVER ","XSERVER stopped, '%s'"
#define INFO_XSER_REQUEST_REJECT      19793,INFO_TYPE,"XSERVER ","REQUESTOR is rejecting connect request"
#define INFO_XSER_CONN_LOST           19794,INFO_TYPE,"XSERVER ","Connection lost"
#define INFO_XSER_SERVDB_CONN_REL     19795,INFO_TYPE,"XSERVER ","Connection released, Ref:%d"
#define INFO_XSER_SERVDB_CONN_BROKEN  19796,INFO_TYPE,"XSERVER ","Connection brocken, Ref:%d"
#define INFO_XSER_SERVDB_DATA_RECVED  19796,INFO_TYPE,"XSERVER ","%d bytes received from, Ref:%d"
#define INFO_XSER_PEER_ACKN_SEND      19797,INFO_TYPE,"XSERVER ","Acknowledge send to peer, Ref:%d"
#define INFO_XSER_PEER_ACKN_RECVED    19798,INFO_TYPE,"XSERVER ","Acknowledge received from peer, Ref:%d, PeerRef:%d"
#define INFO_XSER_SERVDB_DATA_SEND    19799,INFO_TYPE,"XSERVER ","%d bytes send, Ref:%d, PeerRef:%d"
#define INFO_XSER_SERVDB_ACKN_RECVED  19800,INFO_TYPE,"XSERVER ","Acknowledge received from SERVERDB, Ref:%d"
#define INFO_XSER_SERVDB_ACKN_SEND    19801,INFO_TYPE,"XSERVER ","Acknowledge send to SERVERDB, Ref:%d"

#define IERR_XSER_EXCEPTION           19820,IERR_TYPE,"XSERVER ","EXCEPTION:%#x Addr:%#x"
#define IERR_XSER_SURPRISING_HEADER   19821,IERR_TYPE,"XSERVER ","Surprising header size"
#define IERR_XSER_WRONG_COMM_REC      19822,IERR_TYPE,"XSERVER ","Wrong communication segment"
#define IERR_XSER_WRONG_PACKET_COUNT  19823,IERR_TYPE,"XSERVER ","Wrong packet count: ( count:%d, expected: %d)"

#define WRN_XSER_WRONG_DBROOT         19838,WRN_TYPE,"XSERVER  ","DBROOT of the running XSERVER is: '%s'"
#define WRN_XSER_CANNOT_READ_REG      19839,WRN_TYPE,"XSERVER  ","Could not read registry entry: '%s'"

//
// --- XSTART ---
//
#define ERR_XSTRT_CANNOT_STRT_DB      19840,ERR_TYPE, "XSTART  ","'%s' could not be started, rc = %d"
#define ERR_XSTRT_ALREADY_RUNNING     19841,ERR_TYPE, "XSTART  ","'%s' already running!"
#define ERR_XSTRT_DB_STOPPED_EV_LOG   19842,ERR_TYPE, "XSTART  ","'%s' has stopped unexpectedly, (view 'Application Event Log')"
#define ERR_XSTRT_DB_STOPPED_DIAG     19843,ERR_TYPE, "XSTART  ","'%s' has stopped unexpectedly, (view 'Diagnostic File')"
#define ERR_XSTRT_LOGON_FAILURE       19544,ERR_TYPE, "XSTART  ","'%s' did not start due to a service logon failure"

#define INFO_XSTRT_STARTING_CONSOLE   19850,INFO_TYPE,"XSTART  ","Starting kernel as console application"
#define INFO_XSTRT_DB_STARTED         19849,INFO_TYPE,"XSTART  ","'%s' started successfully"

//
// --- XSTOP ---
//
#define ERR_XSTOP_CANNOT_STP_DB       19860,ERR_TYPE, "XSTOP   ","'%s' could not be stopped, rc = %d"
#define ERR_XSTOP_CANNOT_SET_DUMP     19861,ERR_TYPE, "XSTOP   ","XSTOP could not set dump flag of '%s', rc = %u"
#define ERR_XSTOP_OPENING_EVENT_SEM   19862,ERR_TYPE, "XSTOP   ","XSTOP could not open semaphore: '%s', rc = %u"

#define INFO_XSTOP_DB_STOPPED         19869,INFO_TYPE,"XSTOP   ","'%s' stopped successfully"

//
// --- PUTPARAM ---
//
#define ERR_PUTPARAM_OPEN_HELPFILE    19880,ERR_TYPE, "PUTPARAM","Could not open helpfile: '%s'"
#define ERR_PUTPARAM_WRONG_KEY        19881,ERR_TYPE, "PUTPARAM","Unknown XPARAM key: '%s'"
#define ERR_PUTPARAM_INV_ENTRY        19882,ERR_TYPE, "PUTPARAM","Invalid XPARAM helpfile entry: '%s'"
#define ERR_PUTPARAM_NUMERIC          19883,ERR_TYPE, "PUTPARAM","Value must be numeric: '%s'"
#define ERR_PUTPARAM_UNSUPP_TYPE      19884,ERR_TYPE, "PUTPARAM","Unsupported type: '%s'"

//
// --- XCONS ---
//
#define ERR_XCONS_WRONG_TASK          19890,ERR_TYPE, "XCONS   ","Wrong task index"
#define ERR_XCONS_WRONG_TASK_TYPE     19891,ERR_TYPE, "XCONS   ","Could not cancel/kill task"
#define ERR_XCONS_WRONG_UKT           19892,ERR_TYPE, "XCONS   ","Wrong ukt index"
#define ERR_XCONS_SET_UKT_AFFINITY    19893,ERR_TYPE, "XCONS   ","Could not set affinity, (view kernel diagnostic file)"
#define ERR_XCONS_AFFIN_NO_PROCESSOR  19894,ERR_TYPE, "XCONS   ","Not enough processors"



//
// --- DBPARAMS/DBTIMES/SYSMON ---
//
#define ERR_DBPARAMS_ERR_TEXT         19920,ERR_TYPE, "        ","%s"

#define ERR_GET_SERVER_DB             19930,ERR_TYPE, "        ","Could not get SERVERDB name, sqlcode = %d"
#define ERR_CREATING_TAB              19931,ERR_TYPE, "        ","Creating sysmon table '%s', sqlcode = %d"
#define ERR_DELETING_TAB              19932,ERR_TYPE, "        ","Deleting sysmon table '%s', sqlcode = %d"
#define ERR_UPDATING_TAB              19933,ERR_TYPE, "        ","Updating sysmon table '%s', sqlcode = %d"
#define ERR_DROPPING_TAB              19934,ERR_TYPE, "        ","Dropping sysmon table '%s', sqlcode = %d"

#define IERR_ASSERT                   19998,IERR_TYPE, "ASSERT  ","Assertion failed: '%s' Line: %d"
#define IERR_INT_ERR_MSG_PRIO7        19999,IERR_TYPE, "        ","%s"


// =============================== ERROR MESSAGES ==============================

#define ERRMSG_CANT_INSTALL_SIG_HANDLER     "could not install signal handler"
#define ERRMSG_SET_EXIT_HANDLER_FAILED      "set exit handler failed [%lu]"
#define ERRMSG_MISSING_DBROOT               "missing "DBROOT_ENV_VAR" "
#define ERRMSG_CANT_FREE_MEM                "could not free memory"
#define ERRMSG_ALLOC_MEMORY                 "could not allocate memory"
//
// --- remote comm. ---
//
#define ERRMSG_COM_CANT_SND_TO_SOCKET       "could not send to socket"
#define ERRMSG_COM_CONN_PACKET_REC_ERR      "connect packet receive error"
#define ERRMSG_COM_PACK_SEND_SIZE_ERROR     "socket send size error"
#define ERRMSG_COM_CONN_SERV_REJECT         "server rejected connection"
#define ERRMSG_COM_CONN_PACKET_GARBLED      "connect packet garbled"
#define ERRMSG_COM_PACKET_GARBLED           "received a garbled packet"
#define ERRMSG_COM_ILL_MAXSEGMENTSIZE       "illegal max. segment size"
#define ERRMSG_COM_ILL_PACKET_SIZE          "illegal packet size"
#define ERRMSG_COM_SOCKET_SND_ERROR         "socket send error"
#define ERRMSG_COM_SOCKET_REC_ERROR         "socket receive error"
#define ERRMSG_COM_CONN_BROCKEN             "connection broken"
#define ERRMSG_COM_CONN_CLOSED_BY_COM_PART  "connection closed by comm. partner"
#define ERRMSG_COM_CANT_SET_OBJ_SEC         "could not set object security"
#define ERRMSG_COM_CANT_GET_OBJ_SEC         "could not get object security"
#define ERRMSG_COM_BAD_RTE_RETURN_CODE      "bad RTE return code received"
#define ERRMSG_COM_SOCKET_SELECT_ERROR      "socket select error"

#define ERRMSG_ILL_SWAP_TYPE                "illegal swap type"

//
// --- Communication ---
//
#define ERRMSG_COM_DATABASE_NOT_STARTED     "database not running"
#define ERRMSG_NETW_NOT_RESTARTED           "network not restarted"
#define ERRMSG_COM_SERVER_OR_DB_NOT_ACC     "xserver or database not accessible"
#define ERRMSG_COM_CANT_CREATE_COM_SEM      "could not create comm. semaphore"
#define ERRMSG_COM_CANT_ALLOC_COM_SEG       "could not create comm. shared memory"
#define ERRMSG_COM_CANT_GIVE_COM_SEG        "could not share memory with kernel"
#define ERRMSG_COM_CANT_OPEN_UKT_SEM        "could not open kernel semaphore"
#define ERRMSG_COM_CANT_WRITE_COM_QUE       "could not write to comm. queue"
#define ERRMSG_CONN_TIMEOUT                 "connect timeout"
#define ERRMSG_COM_TIMEOUT                  "command timeout"
#define ERRMSG_REPLY_TIMEOUT                "reply timeout"
#define ERRMSG_COM_WAIT_COM_SEM             "communication semaphore error"
#define ERRMSG_COM_POST_UKT_SEM             "kernel semaphore error"
#define ERRMSG_COM_CONN_REFUSED             "connection refused"
#define ERRMSG_COM_CONN_BROKEN              "connection broken"
#define ERRMSG_COM_UNBALANCED_REQUEST_REPLY "unbalanced request/reply"
#define ERRMSG_COM_CANT_FREE_MEM            "could not free memory"
#define ERRMSG_COM_TO_MANY_SESSIONS         "too many sessions"
#define ERRMSG_COM_UTIL_ALREADY_CONN        "utility session is already in use"
#define ERRMSG_NO_TCPIP_INSTALLED           "no TCP/IP to connect remote server"
#define ERRMSG_WRONG_TCPIP_VERSION          "wrong DLL-Version, (check: SQLTCPx.DLL)"
#define ERRMSG_SERV_BY_NAME_ERROR           "unknown TCP/IP service"
#define ERRMSG_MISSING_TCP_SERVICE_ENTRY    "missing TCP/IP service entry: "
#define ERRMSG_CANT_CREATE_SOCKET           "could not create socket"
#define ERRMSG_INCORRECT_MAXSIZE            "got incorrect maxsize"
#define ERRMSG_CANT_SET_BUF_SIZE            "could not set socket buffer"
#define ERRMSG_OUT_OF_SOCK_BUF_MEM          "Out of socket buffer memory"
#define ERRMSG_GET_HOST_BY_NAME_ERR         "unknown host name"
#define ERRMSG_REQ_SOCKET_CONNECT           "could not connect to socket"
#define ERRMSG_COM_ILL_REFERENCE            "illegal reference"
#define ERRMSG_COM_WRONG_CONN_STATE         "wrong connection state"
#define ERRMSG_COM_WRONG_PACKET_LEN         "wrong packet length"
#define ERRMSG_COM_WRONG_PACKET_ADDR        "packet address differs from SQLREQUEST"
#define ERRMSG_KEEP_ALIVE                   "error setting 'KEEPALIVE' socket option"
#define ERRMSG_LINGER                       "error setting 'LINGER' socket option"
#define ERRMSG_XSERVER_NOT_ACTIVE           "XSERVER might be inactive"
#define ERRMSG_PROTOCOL_ERROR               "protocol error"
#define ERRMSG_COM_TO_MANY_DB_SESSIONS      "too many database sessions active"
#define ERRMSG_CONNECT_TIMED_OUT            "connect request timed out"
#define ERRMSG_CREATING_REC_THREAD          "error creating 'ASYNC RECEIVE' thread"
#define ERRMSG_KILL_REC_THREAD              "could not kill 'ASYNC RECEIVE' thread"
#define ERRMSG_CREATING_REC_SEM             "error creating 'ASYNC RECEIVE' semaphore"
#define ERRMSG_CLOSE_REC_SEM                "error closing 'ASYNC RECEIVE' semaphore"
#define ERRMSG_COM_POST_ASYNC_SEM           "async receive semaphore error"
#define ERRMSG_COM_CLOSE_QUE_MAIL           "could not close queue/mailslot"
#define ERRMSG_COM_CLOSE_SERV_SEM           "could not close server semaphore"
#define ERRMSG_COM_CLOSE_CLIENT_SEM         "could not close client semaphore"
#define ERRMSG_INVALID_PACKET_SIZE          "invalid packet size"
#define ERRMSG_INVALID_MIN_REPL_SIZE        "invalid minimum reply data size"
#define ERRMSG_INVALID_MAX_DATA_LEN         "invalid maximum data length"
#define ERRMSG_INVALID_REPL_PACKET_SIZE     "invalid reply packet size"
#define ERRMSG_GET_OFFICIAL_NODE_NAME       "could not get node name"
#define ERRMSG_GET_HOST_NAME                "could not get host name"

#define WRNMSG_COM_NODE_PL_DBNAME_TOO_LONG  "SERVERNODE + SERVERDB too long"


//
// --- XUSER ---
//
#define ERRMSG_CANNOT_CREATE_XUSER_FILE     "could not create USER file"
#define ERRMSG_CANNOT_OPEN_XUSER_FILE       "could not open USER file"
#define ERRMSG_CANNOT_CLOSE_XUSER_FILE      "could not close USER file"
#define ERRMSG_CANNOT_READ_XUSER_FILE       "could not read USER file"
#define ERRMSG_CANNOT_WRITE_XUSER_FILE      "could not write to USER file"
#define ERRMSG_CANNOT_SEEK_XUSER_FILE       "could not seek on USER file"
#define ERRMSG_READ_ERROR_XUSER_FILE        "error while reading USER file"
#define ERRMSG_READ_ERROR_XUSER_PAGE        "error while reading USER page"
#define ERRMSG_READ_ERROR_XUSER_EUSER       "error while reading effective USER"
#define ERRMSG_WRITE_ERROR_XUSER_FILE       "error while writing to USER file"
#define ERRMSG_BLANK_USERKEY                "blank user key not allowed"
#define ERRMSG_NO_XUSER_ENTRY_FOUND         "the USERKEY is unknown"
#define ERRMSG_NO_XUSER_FILE                "could not find USER file"
#define ERRMSG_DIFFERENT_SIDS               "incorrect USER data owner"
#define ERRMSG_ILLEGAL_USER_ENTRY           "illegal USER entry"
#define ERRMSG_ILLEGAL_USER_INDEX           "illegal USER index"
#define ERRMSG_DELETE_XUSER_FILE            "could not delete USER file"
#define ERRMSG_GET_LOGON_USER_NAME          "could not get logon USER name"
#define ERRMSG_NO_SPACE_LEFT                "space for USER entries exhausted"
#define ERRMSG_READ_XUSER_REG_DATA          "could not read USER data"
#define ERRMSG_WRITE_XUSER_REG_DATA         "could not write USER data"
#define ERRMSG_REMOVE_XUSER_REG_DATA        "could not remove USER data"
#define ERRMSG_WRONG_XUSER_REG_DATA_LEN     "wrong USER data length"
#define ERRMSG_NO_GUEST_ACCESS              "missing permission to create USER data"
#define ERRMSG_GET_SID_STRING               "could not get SID"
#define ERRMSG_DATA_NEWER_THAN_COMPONENT    "USER data newer than component"

//
// --- SQLPRINT ---
//
#define ERRMSG_WRITE_SPOOLFILE              "could not write on spool file"
#define ERRMSG_READ_SPOOLFILE               "could not read on spool file"

//
// --- SQLEXEC/SQLAT ---
//
#define ERRMSG_SYNC_SAME                    "could not start of the same session"
#define ERRMSG_CMD_LENGTH                   "command length too long"
#define ERRMSG_SYNC_START                   "could not start of a sync session"
#define ERRMSG_START_SESSION                "could not start a new session"
#define ERRMSG_END_SESSION                  "could not end session"
#define ERRMSG_SYNC_END                     "undefined end of a session"
#define ERRMSG_CANNOT_EXECUTE_CMD           "could not execute command"
#define ERRMSG_WRONG_TIME_VALUE             "wrong time value"
#define ERRMSG_NO_CMD                       "no command to execute"
#define ERRMSG_SET_STD_HANDLE               "could not set standard handle"
#define ERRMSG_CREATE_PIPE                  "could not create 'BATCH' pipe"
#define ERRMSG_CREATE_THREAD                "could not create 'BATCH' thread"
#define ERRMSG_RESUMING_THREAD              "could not resume 'BATCH' thread"
#define ERRMSG_SCHEDULE_SERVICE_NOT_STARTED "service '%s' not started"
#define ERRMSG_STARTING_FUNC_FROM_DLL       "could start function from DLL"
#define ERRMSG_FUNCTION_NOT_AVAIL           "function not available"

//
// --- VIRTUAL TERMINAL ---
//
#define ERRMSG_VT_WRONG_WINDOW_SIZE         "the window size is to large"
#define ERRMSG_VT_GET_VIDEO_MODE            "could not examine Video mode, rc = %hu"
#define ERRMSG_VT_OPEN_KEYBOARD             "could not examine Keyboard, rc = %lu"
#define ERRMSG_VT_CANT_CHANGE_CURSOR        "could not change cursor type, rc = %hu"

//
// --- VIRTUAL FILE ---
//
#define ERRMSG_VF_ILL_HOST_FILE_NAME        "illegal host file name"
#define ERRMSG_VF_ILL_READ_FORMAT_COMB      "illegal read/format combination"
#define ERRMSG_VF_BAD_FILENO                "invalid file number"
#define ERRMSG_VF_WRONG_FILE_NAME           "wrong file name"
#define ERRMSG_VF_ILL_DIREC                 "illegal direction"
#define ERRMSG_VF_ILL_FILE_DESC             "illegal file description"
#define ERRMSG_VF_NON_CONST_REC_LEN         "non-constant record length"
#define ERRMSG_VF_SEEK_REACHED_EOF          "seeking overflows the eof"
#define ERRMSG_VF_FTYPE_NOT_TO_SEEK         "wrong file type to seek"
#define ERRMSG_VF_NO_REG_FILE               "could not delete non-regular files"
#define ERRMSG_VF_DELETE                    "could not delete file"
#define ERRMSG_VF_INVALID_TAPE_CONTENTS     "invalid/no tape contents"

// --- common
#define ERRMSG_VF_ALLOC_BUFFER_SPACE        "could not allocate buffer space"
#define ERRMSG_VF_FILE_EXIST                "file already exists"
#define ERRMSG_VF_FILE_SHARING_VIOLATION    "this file/tape/pipe is already in use"
#define ERRMSG_VF_FREE_BUFFER_SPACE         "could not free buffer space"
#define ERRMSG_VF_FREE_BUFPOOL_COUNT_DIFF   "free Buffer pool: block count error"
#define ERRMSG_VF_GET_FILE_STATUS           "error by get file status"
#define ERRMSG_VF_GET_FILE_TYPE             "error by get file type"
#define ERRMSG_VF_ILL_APPEND_DEVICE         "illegal device for direction append"
#define ERRMSG_VF_ILL_DIREC                 "illegal direction"
#define ERRMSG_VF_ILL_FILE_DESC             "illegal file description"
#define ERRMSG_VF_ILL_FILE_SPEC             "illegal file specification"
#define ERRMSG_VF_ILL_DATA_SIZE             "illegal data size"
#define ERRMSG_VF_ILL_NEXT_REC_LEN          "length of next record is out of range"
#define ERRMSG_VF_ILL_REC_LEN               "illegal record length"
#define ERRMSG_VF_ILL_RESOURCE              "illegal resource"
#define ERRMSG_VF_MAX_REC                   "record too big   (> max record length)"
#define ERRMSG_VF_MIN_REC                   "record too small (< min record length)"
#define ERRMSG_VF_NO_FREE_FILE_DESCRIPTOR   "No free file descriptor found"
#define ERRMSG_VF_OPEN                      "could not open file/tape/pipe"
#define ERRMSG_VF_READ                      "could not read file/tape/pipe"
#define ERRMSG_VF_SEEK                      "could not seek on file/tape/pipe"
#define ERRMSG_VF_WRITE                     "could not write to file/tape/pipe"
#define ERRMSG_VF_TAPE_END_OF_MEDIA         "end-of-tape marker reached"
#define ERRMSG_VF_TAPE_WRITE_MARK           "Could not write filemark or setmark"
#define ERRMSG_VF_TAPE_FILE_SET_MARK        "file or setmark reached"
#define ERRMSG_VF_TAPE_NOT_PATITIONED       "tape not partitioned"
#define ERRMSG_VF_TAPE_NO_MEDIA_IN_DRIVE    "missing tape media in drive"
#define ERRMSG_VF_TAPE_MEDIA_CHANGED        "tape media changed"
#define ERRMSG_VF_REWIND_TAPE               "could not rewind tape"
#define ERRMSG_VF_DEVICE_NOT_READY          "device not ready"
#define ERRMSG_VF_TAPE_PARAM                "could not get/set tape parameter"
#define ERRMSG_VF_TAPE_LOCK_UNLOCK          "could not lock/unlock tape"
#define ERRMSG_VF_TAPE_LOAD_UNLOAD          "could not load/unload tape"
#define ERRMSG_VF_TAPE_WRONG_PART_CNT       "more then one partition on the tape"
#define ERRMSG_VF_CLOSE                     "could not close file"
#define ERRMSG_VF_DELETE                    "could not delete file"
#define ERRMSG_VF_ACCESS_DENIED             "access denied"
#define ERRMSG_VF_DISK_FULL                 "not enough space on disk"
#define ERRMSG_VF_WRONG_PATH                "wrong path"
#define ERRMSG_VF_WRONG_FILE_DEVICE_NAME    "wrong file or device name"
#define ERRMSG_VF_MEDIA_WRITE_PROTECTED     "the media is write protected"

//
// --- SQLSETUSEROPTIONS ---
//
#define ERRMSG_WRITE_USER_DIAG_OPT_VALS     "Could not write diagfile option values"
#define ERRMSG_READ_USER_DIAG_OPT_VALS      "Could not read diagfile option values"
#define ERRMSG_WRITE_CHAR_SET_OPT_VALS      "Could not write CHARACTERSET option values"
#define ERRMSG_READ_CHAR_SET_OPT_VALS       "Could not read CHARACTERSET option values"
#define ERRMSG_WRITE_SQLOPT_OPT_VALS        "Could not write SQLOPT option values"
#define ERRMSG_READ_SQLOPT_OPT_VALS         "Could not read SQLOPT option values"

//
// --- SQLARG3 ---
//
#define ERRMSG_NO_VALID_OPTION              "no valid option"
#define ERRMSG_NO_COMP_SPECIFIED            "no component specified"
#define ERRMSG_WRONG_OPTION_SEQUENCE        "wrong option sequence"
#define ERRMSG_MISSING_QUOTE                "missing quote"
#define ERRMSG_ILLEGAL_ARGUMENT             "illegal argument string"
#define ERRMSG_ILLEGAL_DIALOG_OBJ           "illegal component object"
#define ERRMSG_DOUBLE_SEPERATOR             "illegal seperator sequence"


//
// --- XPARAM ---
//
#define ERRMSG_PATH_TOO_LONG_FOR_XPF        "path too long for PARAM file"
#define ERRMSG_UNDEFINED_OPEN_MODE          "undefined open mode of PARAM file"
#define ERRMSG_ACCESS_XPARAM_FILE           "cannot access PARAM file"
#define ERRMSG_BLANK_XP_KEY                 "blank keys not allowed"
#define ERRMSG_KEY_NOT_FOUND                "key not found"
#define ERRMSG_CANNOT_WRITE_XP_KEY          "cannot write key"
#define ERRMSG_CANNOT_WRITE_XP_VALUE        "cannot write value"
#define ERRMSG_CANNOT_WRITE_XP_FILE         "cannot write to PARAM file"
#define ERRMSG_WRITE_ERROR                  "write error"
#define ERRMSG_CANNOT_READ_XP_KEY           "cannot read key"
#define ERRMSG_CANNOT_READ_XP_VALUE         "cannot read value"
#define ERRMSG_READ_ERROR                   "read error"
#define ERRMSG_CANNOT_FIND_START_POINT      "cannot find start point"
#define ERRMSG_CANNOT_FIND_PREV_ENTRY       "cannot find previous entry"
#define ERRMSG_CANNOT_FIND_ACT_ENTRY        "cannot find actual entry"
#define ERRMSG_EOF_REACHED                  "end of file reached"


//
// --- SERVICE ---
//
#define SERVICE_USAGE                       "usage: service [-d <..>][-r][-n <..>][-R <..>][-u][-q|-s][-a][-g]\r\n"\
                                            "\n"                                                              \
                                            "     -d <serverdb/gateway>   - database/gateway    \n"           \
                                            "     -n <servernode>         - server node name    \n"           \
                                            "     -R <dbroot>             - DBROOT              \n"           \
                                            "     -g                      - install gateway     \n"           \
                                            "     -A                      - install ADABAS operator group \n" \
                                            "     -q                      - quick kernel        \n"           \
                                            "     -s                      - slow kernel         \n"           \
                                            "     -a                      - set autostart option\n"           \
                                            "     -r                      - removes service control entry\n"  \
                                            "     -u                      - update service control entry\n"

//
// --- SHOW ---
//
#if defined(_WIN32)
 #define SHOW_USAGE_95                      "usage: show [-n <servernode>]\r\n"            \
                                            "\n"                                           \
                                            "     -n <servernode> - server node name    \n"

 #define SHOW_USAGE                         "usage: show [-n <servernode>][-v|-r]\r\n"        \
                                            "\n"                                              \
                                            "     -n <servernode> - server node name    \n"   \
                                            "     -v              - show SERVERDB-Versions\n" \
                                            "     -r              - show DBROOTs\n"
#else
 #define SHOW_USAGE                         "usage: show\r\n"
#endif

//
// --- XSTART ---
//
#if defined(_WIN32)
 #define XSTART_USAGE_NT                    "usage: strt [-d <..>] [-slow|-quick|-n <servernode>]\r\n"\
                                            "\n"                                            \
                                            "     -d <serverdb>    - database            \n"\
                                            "     -n <servernode>  - server node name    \n"\
                                            "     -i               - no automatic restart\n"\
                                            "     -g               - start gateway       \n"\
                                            "     -slow            - start slow  kernel  \n"\
                                            "     -quick           - start quick kernel  \n"

 #define XSTART_USAGE                       "usage: strt [-d <..>] [-slow|-quick]             \r\n"\
                                            "\n"                                            \
                                            "     -d <serverdb>    - database            \n"\
                                            "     -i               - no automatic restart\n"\
                                            "     -slow            - start slow  kernel   \n"\
                                            "     -quick           - start quick kernel   \n"
#else
 #define XSTART_USAGE                       "usage: strt [-d <..>] [-slow|-quick] [-a]\r\n"        \
                                            "\n"                                            \
                                            "     -d <serverdb>    - database            \n"\
                                            "     -i               - no automatic restart\n"\
                                            "     -slow            - start slow  kernel   \n"\
                                            "     -quick           - start quick kernel   \n"\
                                            "     -a               - close window automatically\n"
#endif

//
// --- XSTOP ---
//
#if defined(_WIN32)
 #define XSTOP_USAGE_NT                     "usage: stp -d <..> [-p|-n <servernode>]\r\n"\
                                            "\n"                                         \
                                            "     -d <serverdb>      - database         \n"\
                                            "     -n <servernode>    - server node name \n"\
                                            "     -p                 - dump             \n"
 #define XSTOP_USAGE                        "usage: stp -d <..> [-p]\r\n"\
                                            "\n"                                           \
                                            "     -d <serverdb>      - database         \n"\
                                            "     -p                 - dump             \n"
#else
 #define XSTOP_USAGE                        "usage: stp -d <..> [-p]\r\n"\
                                            "\n"                                           \
                                            "     -d <serverdb>      - database         \n"\
                                            "     -p                 - dump             \n"

#endif
#define XSTOP_WRONG_VERS_KERNEL             "       Kernel  RTE Version :  %s\n"
#define XSTOP_WRONG_VERS_XSTOP              "       XSTOP   RTE Version :  %s\n"

//
// --- GETPARAM ---
//
#define GETPARAM_USAGE                      "usage: getparam <ServerDB> <ParamName> \r\n"
#define GETPARAM_ERR_TEXT                   "getparam : %s\n"

//
// --- PUTPARAM ---
//
#define PUTPARAM_USAGE                      "usage: %s <ServerDB> <ParamName> <ParamValue>\r\n"
#define RENPARAM_USAGE                      "usage: %s <ServerDB> <OldParamName> <NewParamName>\r\n"
#define PUTPARAM_ERR_TEXT                   "%s : %-18s: %s\n"


//
// --- DBPARAMS ---
//
#define DBPARAMS_USAGE                      "usage: dbparams" \
                                            "[ DROP TABLE ]\r\n"
#define DBPARAMS_CMD_DROP_TABLE             "DROP"
#define DBPARAMS_PAR_DROP_TABLE             "TABLE"

//
// --- DBTIMES ---
//
#define DBTIMES_USAGE                       "usage: dbtimes" \
                                            "[ DROP TABLE ]\r\n"
#define DBTIMES_CMD_DROP_TABLE              "DROP"
#define DBTIMES_PAR_DROP_TABLE              "TABLE"

//
// --- XSERVER ---
//
#define XSERVER_NO_VALID_OPTION   "No valid option! Use -h to get help.\r\n"
#define XSERVER_ACTIVE            "Remote SQL Server is active"


#if defined(_WIN32) && defined(RUN_AS_SERVICE)
 #define XSERVER_USAGE_NT                                                    \
   "usage: serv [-D<l>|-i|-r|-s|-k][-n <servernode>]\n"                      \
   "\n"                                                                      \
   "     -D <l>          -  debug level ( l = 0 .. 9 )                    \n"\
   "                        1       error messages, rejected connections  \n"\
   "                        2       connections                           \n"\
   "                        3       start/stop data transfer              \n"\
   "                        4       start/stop server threads             \n"\
   "                        8       internal control flow                 \n"\
   "     -i              -  install as service                            \n"\
   "     -n <servernode> -  server node name                              \n"\
   "     -r              -  remove service from service table             \n"\
   "     -s              -  start                                         \n"\
   "     -k              -  kill (stop) service                           \n"

 #define XSERVER_USAGE_WIN95                                                 \
   "usage: serv [[-D<l>] |-k]\n"                                             \
   "\n"                                                                      \
   "     -D <l>          -  debug level ( l = 0 .. 9 )                    \n"\
   "                        0       error messages, rejected connections  \n"\
   "                        1       all connections                       \n"\
   "                        2       data transfer                         \n"\
   "                        7       data                                  \n"\
   "                        8       internal control flow                 \n"\
   "     -k              -  kill a running xserver                        \n"
#else
 #define XSERVER_USAGE                                                      \
   "usage: serv [-D<l>] [-k]\n"                                             \
   "\n"                                                                     \
   "     -D <l>          - debug level ( l = 0 .. 9 )                    \n"\
   "                       0       error messages, rejected connections  \n"\
   "                       1       all connections                       \n"\
   "                       2       data transfer                         \n"\
   "                       7       data                                  \n"\
   "                       8       internal control flow                 \n"\
   "     -k              - kill a running xserver                        \n"
#endif

//
// --- XCONS ---
//
#if defined(_WIN32)
  #define XCONS_SYS                        "Win"
#else
  #define XCONS_SYS                        "OS/2"
#endif

#define XCONS_CMD_SHOW                     "SHOW      "
#define XCONS_CMD_UPDATE                   "UPDATE    "
#define XCONS_CMD_CANCEL                   "CANCEL    "
#define XCONS_CMD_KILL                     "KILL      "
#define XCONS_CMD_DROP                     "DROP      "
#define XCONS_CMD_HELP1                    "HELP      "
#define XCONS_CMD_HELP2                    "?         "
#define XCONS_CMD_TOP                      "TOP       "
#define XCONS_CMD_TIME_MEASURE             "TIME      "
#define XCONS_CMD_RESET_CNT                "RESET     "
#define XCONS_CMD_GETPARAM                 "GETPARAM  "
#define XCONS_CMD_PUTPARAM                 "PUTPARAM  "
#define XCONS_CMD_CRASH                    "CRASH     "
#define XCONS_CMD_DUMP                     "DUMP      "
#define XCONS_CMD_ENABLE                   "ENABLE    "
#define XCONS_CMD_DISABLE                  "DISABLE   "
#define XCONS_CMD_DEBUGLEVEL               "DEBUGLEVEL"
#define XCONS_CMD_UKT_AFFINITY             "AFFINITY  "

#define XCONS_MIN_CMD_LEN_SHOW             1
#define XCONS_MIN_CMD_LEN_UPDATE           1
#define XCONS_MIN_CMD_LEN_CANCEL           2
#define XCONS_MIN_CMD_LEN_KILL             1
#define XCONS_MIN_CMD_LEN_DROP             1
#define XCONS_MIN_CMD_LEN_HELP1            1
#define XCONS_MIN_CMD_LEN_HELP2            1
#define XCONS_MIN_CMD_LEN_HELP2            1
#define XCONS_MIN_CMD_LEN_TIME_MEASURE     2
#define XCONS_MIN_CMD_LEN_RESET_CNT        2
#define XCONS_MIN_CMD_LEN_GETPARAM         8
#define XCONS_MIN_CMD_LEN_PUTPARAM         8
#define XCONS_MIN_CMD_LEN_CRASH            5
#define XCONS_MIN_CMD_LEN_DUMP             4
#define XCONS_MIN_CMD_LEN_ENABLE           1
#define XCONS_MIN_CMD_LEN_DISABLE          2
#define XCONS_MIN_CMD_LEN_DEBUGLEVEL       2
#define XCONS_MIN_CMD_LEN_UKT_AFFINITY     2

#define XCONS_CMD_IO                       "IO        "
#define XCONS_CMD_AIO                      "AIO       "
#define XCONS_CMD_STORAGE                  "STORAGE   "
#define XCONS_CMD_TASKS                    "TASKS     "
#define XCONS_CMD_ACTIVE_TASKS             "ACTIVE    "
#define XCONS_CMD_RUNNABLE_TASKS           "RUNNABLE  "
#define XCONS_CMD_VERSIONS                 "VERSIONS  "
#define XCONS_CMD_REGIONS                  "REGIONS   "
#define XCONS_CMD_STATE                    "STATE     "
#define XCONS_CMD_RTE                      "RTE       "
#define XCONS_CMD_ALL                      "ALL       "
#define XCONS_CMD_TABLES                   "TABLES    "
#define XCONS_CMD_TASK_STAT                "T_STAT    "
#define XCONS_CMD_TASK_COUNTS              "T_CNT     "
#define XCONS_CMD_QUEUE_STAT               "T_QUEUE   "
#define XCONS_CMD_TOTAL_COUNTS             "TOTAL     "
#define XCONS_CMD_UKT_SLEEP_STAT           "SLEEP     "
#define XCONS_CMD_SUSPENDS                 "SUSPENDS  "
#define XCONS_CMD_UKT_QUEUES               "QUEUES    "

#define XCONS_MIN_CMD_LEN_IO               1
#define XCONS_MIN_CMD_LEN_AIO              2
#define XCONS_MIN_CMD_LEN_STORAGE          3
#define XCONS_MIN_CMD_LEN_TASKS            1
#define XCONS_MIN_CMD_LEN_ACTIVE_TASKS     2
#define XCONS_MIN_CMD_LEN_RUNNABLE_TASKS   2
#define XCONS_MIN_CMD_LEN_VERSIONS         1
#define XCONS_MIN_CMD_LEN_REGIONS          1
#define XCONS_MIN_CMD_LEN_STATE            3
#define XCONS_MIN_CMD_LEN_RTE              1
#define XCONS_MIN_CMD_LEN_ALL              2
#define XCONS_MIN_CMD_LEN_TABLES           6
#define XCONS_MIN_CMD_LEN_TASK_STAT        3
#define XCONS_MIN_CMD_LEN_TASK_COUNTS      3
#define XCONS_MIN_CMD_LEN_QUEUE_STAT       3
#define XCONS_MIN_CMD_LEN_TOTAL_COUNTS     2
#define XCONS_MIN_CMD_LEN_UKT_SLEEP_STAT   2
#define XCONS_MIN_CMD_LEN_SUSPENDS         2
#define XCONS_MIN_CMD_LEN_UKT_QUEUES       1


#define XCONS_USAGE_SYSMON                 "usage: sysmon <Command> [<Interval> [<Repeat>]]\r\n"             \
                                           "\r\n"                                                            \
                                           "       Commands: \r\n"                                           \
                                           "        drop statistic tables      ::  DROP TABLES       \r\n"   \
                                           "        update statistics/states   ::  UPDATE IO         \r\n"   \
                                           "                                       UPDATE STORAGE    \r\n"   \
                                           "                                       UPDATE TASKS      \r\n"   \
                                           "                                       UPDATE VERSIONS   \r\n"   \
                                           "                                       UPDATE REGIONS    \r\n"   \
                                           "                                       UPDATE RTE        \r\n"   \
                                           "                                       UPDATE ALL        \r\n"
#define XCONS_USAGE                        "usage: xcons [<serverdb>] <Command> [<Interval> [<Repeat>]]\r\n" \
                                           "\r\n"                                                            \
                                           "       database                    ::  <serverdb>\n"             \
                                           "\r\n"                                                            \
                                           "       Commands: \r\n"                                           \
                                           "        time measurement           ::  TIME   <ENABLE | DISABLE> \r\n"   \
                                           "        cancel the command of task ::  CANCEL <taskindex>\r\n"   \
                                           "        kill the session of task   ::  KILL <taskindex>  \r\n"   \
                                           "        set UKT affinity           ::  AFFINITY <uktindex>\r\n"  \
                                           "        show statistics/states     ::  SHOW IO           \r\n"   \
                                           "                                       SHOW AIO       (backup only) \r\n"   \
                                           "                                       SHOW STORAGE      \r\n"   \
                                           "                                       SHOW TASKS        \r\n"   \
                                           "                                       SHOW ACTIVE    [ DW | SV | US ]\r\n"   \
                                           "                                       SHOW RUNNABLE  [ DW | SV | US ]\r\n"   \
                                           "        show task counts               SHOW T_C       [ DW | SV | US ]\r\n"   \
                                           "                                       SHOW VERSIONS     \r\n"   \
                                           "                                       SHOW REGIONS      \r\n"   \
                                           "                                       SHOW STATE        \r\n"   \
                                           "                                       SHOW RTE          \r\n"   \
                                           "                                       SHOW QUEUES       \r\n"   \
                                           "        suspend reasons            ::  SHOW SUSPENDS     \r\n"   \
                                           "        UKT sleep statistic        ::  SHOW SLEEP        \r\n"   \
                                           "                                       SHOW ALL          \r\n"


#define XCONS_WRONG_VERS_KERNEL            "       Kernel  RTE Version :  %s\n"
#define XCONS_WRONG_VERS_XCONS             "       XCONS   RTE Version :  %s\n"

#define XCONS_SHOW_VERS_KERNEL             "\nKernel Version  '%s'\n"
#define XCONS_SHOW_VERS_RTE                "RTE    Version  '%s'\n"
#define XCONS_SERVERDB                     "\nSERVERDB: %s\n"
#define XCONS_GATEWAY                      "\nGateway: %s\n"

#define XCONS_SHOW_TASK_HEADER             "\n"                                                                   \
                                           "%-5.5s  %10.10s  %-7.7s  %11.11s  %-14.14s   %8.8s %8.8s \n"          \
                                           "%-5.5s  %10.10s  %-7.7s  %11.11s  %-14.14s   %8.8s %4.4s %3.3s\n",    \
                                           "ID", XCONS_SYS,  "Type", "Application", "State", "Timeout", "Region", \
                                           "",   "Tid",      "",     "Pid",          "",      "" ,       "Cnt", "Try"
#define XCONS_SHOW_TASK_INFO               "T%-4d  %10.10s  %-7.7s  %11.11s %c%-14.14s %c %8.8s %4.4s %3.3s\n"
#define XCONS_SHOW_SERVER_UNUSED           "\n%5d Server Task(s) is/are unused"
#define XCONS_SHOW_TASK_CONN_INFO          "\n%5d Task(s) is/are in State %s\n"
#define XCONS_SHOW_TASK_NO_TIMEOUT         "no"

#define XCONS_SHOW_IO_HEADER               "\n"                                         \
                                           "%-44.44s %5.5s %8.8s %8.8s %8.8s\n"               \
                                           "%-44.44s %5.5s %8.8s %8.8s %8.8s\n",              \
                                           "Devspace", "Devs.", "Read(s)",  "Write(s)", "Total",\
                                           "Name",     "No.",   "Count",    "Count",    "Count"

#define XCONS_SHOW_IO_INFO                 "%-44.44s %5d %8d %8d %8d\n"
#define XCONS_SHOW_IO_INFO_TOTAL_STR       "total I/O:"
#define XCONS_SHOW_IO_INFO_TOTAL           "%44.44s       %8d %8d %8d \n"

#define XCONS_SHOW_REGION_HEADER           "\n"                                                                           \
                                           "%5s  %-8.8s  %-5.5s %10.10s %10.10s %10.10s %8.8s %4.4s   %s\n",                       \
                                           "Index", "Region", "Owner", "Get-Cnt", "Tas-Cnt","Coll.", "Waits", "Excl","Coll % "
#define XCONS_SHOW_REGION_INFO             "%5d  %-8.8s  %-5.5s %10u %10u %10u %8u %4d %6.2f %%\n"
#define XCONS_SHOW_REGION_WAIT_HD          "       waiting:"
#define XCONS_SHOW_REGION_WAIT_I           "  T%-4d"
#define XCONS_SHOW_REGION_WAIT_ILF         "\n                 T%-4d"

#define XCONS_SHOW_STOR_DYN_POOL           "\n" \
                                           "Type                      allocated         used       unused\n"\
                                           "Shared dyn pool         %8d KB  %8d KB  %8d KB\n"
#define XCONS_SHOW_STOR_DYN_DATA           "Shared dyn data         %8d KB  %8d KB  %8d KB\n"
#define XCONS_SHOW_STOR_RTE_ALLOC_POOL_MX  "\n" \
                                           "Type                      allocated          max       cnt\n"\
                                           "RTE allocation pool     %8d KB  %8d MB  %8d\n"
#define XCONS_SHOW_STOR_KERN_ALLOC_POOL_MX "Kernel allocation pool  %8d KB  %8d KB  %8d\n"
#define XCONS_SHOW_STOR_RTE_ALLOC_POOL     "\n" \
                                           "Type                      allocated       cnt\n"\
                                           "RTE allocation pool     %8d KB  %8d\n"
#define XCONS_SHOW_STOR_KERN_ALLOC_POOL    "Kernel allocation pool  %8d KB  %8d\n"

#define XCONS_SHOW_STOR_ALLOC_STCK         "\n"    \
                                           "Type                      allocated\n"\
                                           "Task stacks             %8d KB\n"
#define XCONS_SHOW_STOR_KGS                "Kernel global section   %8d KB\n"
#define XCONS_SHOW_STOR_KSS                "Kernel shared section   %8d KB\n"

#define XCONS_SHOW_STOR_TSK_HEADER         "\n"                                       \
                                           "%-5.5s %-7.7s  %10.10s  %10.10s\n"        \
                                           "%-5.5s %-7.7s  %10.10s  %10.10s \n",      \
                                           "Task", "Type", "Stack used", "Stack free",\
                                           "ID",   "",     "KB",          "KB"
#define XCONS_SHOW_STOR_TSK_INFO           "T%-4d %-7.7s  %10.1f  %10.1f\n"

#define XCONS_SHOW_RTE_KT_HEADER           "\nKernel Threads:\n"            \
                                           " %-11.11s %10.10s  %-12.12s\n"  \
                                           " %-11.11s %10.10s  %-12.12s\n", \
                                           "Thread", XCONS_SYS,"State",     \
                                           "Name",  "Tid",  ""
#define XCONS_SHOW_RTE_KT_INFO             " %-11.11s %10.10s  %-12.12s\n"
#define XCONS_SHOW_RTE_KT_COORD            "COORDINATOR"
#define XCONS_SHOW_RTE_KT_TIMER            "TIMER"
#define XCONS_SHOW_RTE_KT_CLOCK            "CLOCK"
#define XCONS_SHOW_RTE_KT_DEV0             "DEV0"
#define XCONS_SHOW_RTE_KT_ASYNC0           "ASYNC0"
#define XCONS_SHOW_RTE_KT_DCOM0            "DCOM0"
#define XCONS_SHOW_RTE_KT_CONSOLE          "CONSOLE"
#define XCONS_SHOW_RTE_KT_REQUESTOR        "REQUESTOR"
#define XCONS_SHOW_RTE_DEV_WORKER_HEADER   "\nIO Worker Threads:\n"                                             \
                                           " %-12.12s  %10.10s  %-11.11s  %-13.13s\n"             \
                                           " %-12.12s  %10.10s  %-11.11s  %-13.13s\n",            \
                                           "Thread", XCONS_SYS, "State", "IO", \
                                           "Name",   "Tid",     "",      "Counter"
#define XCONS_SHOW_RTE_DEV_WORKER_INFO     " IO-WORKER%-3d  %10.10s  %-11.11s  %-10d\n"
#define XCONS_SHOW_RTE_CONCURR_DEV_WORKER  "\n %d IO Worker threads executing concurrently\n"

#define XCONS_SHOW_RTE_UKT_HEADER          "\nUser Kernel Threads:\n"                                             \
                                           " %-6.6s  %10.10s  %-11.11s  %13.13s  %6.6s  %5.5s   %s\n"             \
                                           " %-6.6s  %10.10s  %-11.11s  %13.13s  %6.6s  %5.5s   %s\n",            \
                                           "Thread", XCONS_SYS, "State", "Dispatch", "Active" , "Total" , "Task", \
                                           "Name",   "Tid",     "",      "Counter",  "Tasks"  , "Tasks" , "Cluster"
#define XCONS_SHOW_RTE_UKT_INFO            " UKT%-3d  %10.10s  %-11.11s %14.0f  %6d  %5d   %s \n"
#define XCONS_SHOW_RTE_UKT_AFFIN_HEADER    "\nUser Kernel Threads affinity:\n"
#define XCONS_SHOW_RTE_UKT_AFFIN_INFO      " UKT%-3d <-> CPU:%3d\n"

#define XCONS_SHOW_RTE_IO_HEADER           "\nI/O via UKTs and I/O Threads:\n"                                    \
                                           " %-6.6s  %10.10s  %-20.20s %5.5s  %8.8s  %8.8s    %5.5s\n"            \
                                           " %-6.6s  %10.10s  %-20.20s %5.5s  %8.8s  %8.8s  %4.4s %4.4s\n",       \
                                           "Thread",XCONS_SYS,"Devspace", "Devs.", "Read",  "Write" , "Queue",    \
                                           "Name",  "Tid",    "Name",     "No.",   "Count", "Count" , "Len.", "Max."
#define XCONS_SHOW_RTE_IO_UKT_INFO         " UKT%-3d  %10.10s  %-20.20s %5d  %8d  %8d   --  (--)\n"
#define XCONS_SHOW_RTE_IO_DEV_INFO         " I/O%-3d  %10.10s  %-20.20s %5d  %8d  %8d   %2d  (%2d)\n"

#define XCONS_SHOW_ASYNCIO_HEADER      "\nI/O via asynchronous I/O Threads:\n"                                 \
                                           " %-20.20s %10.10s  %3.3s %6.6s %6.6s %8.8s %8.8s   %5.5s\n"            \
                                           " %-20.20s %10.10s  %3.3s %6.6s %6.6s %8.8s %8.8s %4.4s %4.4s\n",       \
                                           "Device", XCONS_SYS, "R/W", "Max   ",  "Block","Read",  "Write" , "Queue",    \
                                           "Name",   "Tid",     "",    "Blocks",  "Size", "Count", "Count" , "Len.", "Max."
#define XCONS_SHOW_ASYNCIO_INFO        " %-20.20s %10.10s  %3s %6d %6d %8d %8d  %2d  (%2d)\n"

#define XCONS_INFO_LINE          "-------------------------------------------------------------------------------"

#define XCONS_SHOW_QUEUE_STAT_HEADER      "\nTask Queue Statistics:\n"  \
  "\n%s\n%5s      %9s     %9s    %9s\n%s\n",             \
  XCONS_INFO_LINE, "Task ", "UToU", "UKT", "COM", XCONS_INFO_LINE

#define XCONS_SHOW_QUEUE_STAT_INFO        "T%-4d     %10u    %10u   %10u  \n"

#define TASK_COUNT_FORMAT_TWO_COUNTS        "%16s %-10u   %40s %-u\n"
#define TASK_COUNT_FORMAT_THREE_COUNTS      "%16s %-8d %17s %-8d %17s %-u\n"
#define FORMAT_CNT_AND_TIME                 "%16s %-10u   %40s %-3.4f\n"
#define FORMAT_TWO_COUNTS_AND_TIME         "%16s %-8d %17s %-8d %17s %-3.4f\n"
#define FORMAT_COUNT_AND_TWO_TIMES         "%16s %-8d %17s %-8.4f %17s %-8.4f\n"

#define XCONS_SHOW_TASK_COUNT_HEADER \
                   "\n%19.19s T%-4d %12.12s ( pid = %-10.10s ) %19.19s\n"
#define XCONS_SHOW_TASK_COUNT_TRAILER      "%s\n",XCONS_INFO_LINE

#define XCONS_SHOW_TASK_COUNT_REM_NODE_AND_PID     "%16s %-30.30s   %20s %s\n"
#define XCONS_SHOW_TASK_COUNT_REM_NODE             "remote_node   :"
#define XCONS_SHOW_TASK_COUNT_REM_PID              "remote_pid    :"

#define XCONS_SHOW_TASK_COUNT_DISP_COMMAND_CNT     TASK_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TASK_COUNT_KT_DISP_CALL_CNT     "dispatcher_cnt:"
#define XCONS_SHOW_TASK_COUNT_KT_COMMAND_CNT       "command_cnt   :"

#define XCONS_SHOW_TASK_COUNT_EXCL_SELF_SUSP_CNT   TASK_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TASK_COUNT_KT_EXCLUSIVE_CNT     "exclusive_cnt :"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_SUSP_CNT     "self_susp_cnt :"

#define XCONS_SHOW_TASK_COUNT_PG_PER_IO            "%16s %-10u   %40s %-4.1f\n"
#define XCONS_SHOW_TASK_COUNT_IO_CNT               TASK_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TASK_COUNT_ASYN_CNT_PG          TASK_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TASK_COUNT_STATE_CNT_TIME       FORMAT_COUNT_AND_TWO_TIMES
#define XCONS_SHOW_TASK_COUNT_IO_CNT_PG_TIME       FORMAT_TWO_COUNTS_AND_TIME
#define XCONS_SHOW_TASK_COUNT_SELF_R_CNT_AVG_TIME  FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_SELF_W_CNT_AVG_TIME  FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_DEV_R_CNT_AVG_TIME   FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_DEV_W_CNT_AVG_TIME   FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_ASYN_R_CNT_AVG_TIME  FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_ASYN_W_CNT_AVG_TIME  FORMAT_CNT_AND_TIME

#define XCONS_SHOW_TASK_COUNT_KT_PG_PER_IO         "pages_per_io  :"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_R_CNT        "self_read_io  :"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_R_PG         "self_read_pg  :"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_W_CNT        "self_write_io :"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_W_PG         "self_write_pg :"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_R_AVG_TIME   "avg_self_rd_tm:"
#define XCONS_SHOW_TASK_COUNT_KT_SELF_W_AVG_TIME   "avg_self_wr_tm:"

#define XCONS_SHOW_TASK_COUNT_KT_DEV_R_CNT         "dev_read_io   :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_R_PG          "dev_read_pg   :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_W_CNT         "dev_write_io  :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_W_PG          "dev_write_pg  :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_R_REL_TIME    "rel_dev_rd_tm :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_R_ABS_TIME    "abs_dev_rd_tm :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_W_REL_TIME    "rel_dev_wr_tm :"
#define XCONS_SHOW_TASK_COUNT_KT_DEV_W_ABS_TIME    "abs_dev_wr_tm :"

#define XCONS_SHOW_TASK_COUNT_KT_ASYN_R_CNT        "asyn_read_io  :"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_R_PG         "asyn_read_pg  :"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_W_CNT        "asyn_write_io :"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_W_PG         "asyn_write_pg :"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_R_REL_TIME   "rel_asyn_rd_tm:"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_R_ABS_TIME   "abs_asyn_rd_tm:"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_W_REL_TIME   "rel_asyn_wr_tm:"
#define XCONS_SHOW_TASK_COUNT_KT_ASYN_W_ABS_TIME   "abs_asyn_wr_tm:"


#define XCONS_SHOW_TASK_COUNT_WAIT_SLEEP_SUSP_CNT  \
                                    TASK_COUNT_FORMAT_THREE_COUNTS
#define XCONS_SHOW_TASK_COUNT_VWAIT_CNT_AVG_TIME   FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_KT_STATE_VWAIT_CNT   "state_vwait   :"
#define XCONS_SHOW_TASK_COUNT_KT_VWAIT_REL_TIME    "rel_wait_time :"
#define XCONS_SHOW_TASK_COUNT_KT_VWAIT_ABS_TIME    "abs_wait_time :"
#define XCONS_SHOW_TASK_COUNT_VSLEEP_CNT_AVG_TIME  FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_KT_STATE_VSLEEP_CNT  "state_vsleep  :"
#define XCONS_SHOW_TASK_COUNT_KT_VSLEEP_REL_TIME   "rel_sleep_time:"
#define XCONS_SHOW_TASK_COUNT_KT_VSLEEP_ABS_TIME   "abs_sleep_time:"
#define XCONS_SHOW_TASK_COUNT_VSUSP_CNT_AVG_TIME   FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_KT_STATE_VSUSP_CNT   "state_vsusp   :"
#define XCONS_SHOW_TASK_COUNT_KT_VSUSP_REL_TIME    "rel_susp_time :"
#define XCONS_SHOW_TASK_COUNT_KT_VSUSP_ABS_TIME    "abs_susp_time :"
#define XCONS_SHOW_TASK_COUNT_RCV_RPL_INFO         FORMAT_TWO_COUNTS_AND_TIME
#define XCONS_SHOW_TASK_COUNT_KT_RCV_RPL_CNT          "rcv_rpl_count :"
#define XCONS_SHOW_TASK_COUNT_KT_RCV_RPL_TO_LONG      "rcv_rpl_long  :"
#define XCONS_SHOW_TASK_COUNT_KT_RCV_RPL_AVG_TIME     "avg_rcv_rpl_t :"
#define XCONS_SHOW_TASK_COUNT_RPL_RCV_INFO   FORMAT_CNT_AND_TIME
#define XCONS_SHOW_TASK_COUNT_KT_RPL_RCV_CNT          "rpl_rcv_count :"
#define XCONS_SHOW_TASK_COUNT_KT_RPL_RCV_REL_TIME     "rel_rpl_rcv_t :"
#define XCONS_SHOW_TASK_COUNT_KT_RPL_RCV_ABS_TIME     "abs_rpl_rcv_t :"

#define XCONS_SHOW_TASK_COUNT_PRIO_TOT_OTH       TASK_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TASK_COUNT_KT_PRIO_CNT          "prio_total_cnt:"
#define XCONS_SHOW_TASK_COUNT_KT_PRIO_FROM_OTHER   "from_oth_ukt:  "

#define XCONS_SHOW_TOTAL_STAT_HEADER          \
             "\nTotal counter statistics:\n=========================\n\n"

#define TOTAL_COUNT_FORMAT_ONE_COUNT         "%16s %-10u\n"
#define TOTAL_COUNT_FORMAT_TWO_COUNTS        "%16s %-10u   %30s %-u\n"

#define XCONS_SHOW_TOTAL_DISP_COMMAND_CNT          TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_DISP_CALL_CNT          "total_disp_calls    :"
#define XCONS_SHOW_TOTAL_KT_COMMAND_CNT            "total_commands      :"

#define XCONS_SHOW_TOTAL_KT_STATE_VWAIT_VSUSP_CNT  TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_STATE_VWAIT_CNT        "total_state_vwait   :"
#define XCONS_SHOW_TOTAL_KT_STATE_VSUSP_CNT        "total_state_vsuspend:"

#define XCONS_SHOW_TOTAL_KT_STATE_VSLEEP           TOTAL_COUNT_FORMAT_ONE_COUNT
#define XCONS_SHOW_TOTAL_KT_STATE_VSLEEP_CNT       "total_state_vsleep  :"

#define XCONS_SHOW_TOTAL_SELFIO_DEVIO_CNT          TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_SELFIO_CNT             "total_self_io       :"
#define XCONS_SHOW_TOTAL_KT_DEVIO_CNT              "total_dev_io        :"

#define XCONS_SHOW_TOTAL_SELFIO_DEVIO_CNT          TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_SELFIO_CNT             "total_self_io       :"
#define XCONS_SHOW_TOTAL_KT_DEVIO_CNT              "total_dev_io        :"

#define XCONS_SHOW_TOTAL_REG_ACC_BEGEXCL_COLL      TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_REG_ACCESS             "total_region_access :"
#define XCONS_SHOW_TOTAL_KT_BEGEXCL_COLL           "begexcl_tas_coll    :"

#define XCONS_SHOW_TOTAL_REG_COLL_ENDEXCL_COLL     TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_REG_COLL               "total_region_coll   :"
#define XCONS_SHOW_TOTAL_KT_ENDEXCL_COLL           "endexcl_tas_coll    :"

#define XCONS_SHOW_TOTAL_KT_REG_WAIT               TOTAL_COUNT_FORMAT_ONE_COUNT
#define XCONS_SHOW_TOTAL_KT_REG_WAIT_CNT           "total_region_wait   :"

#define XCONS_SHOW_TOTAL_PRIO_CNT_AND_OTHER        TOTAL_COUNT_FORMAT_TWO_COUNTS
#define XCONS_SHOW_TOTAL_KT_PRIO_CNT               "total_prio_calls    :"
#define XCONS_SHOW_TOTAL_KT_PRIO_OTHER             "total_prio_other    :"

#define XCONS_SHOW_UKT_SLEEP_STAT_HEADER \
         "\n%s\n%-10s      %8s       %8s    %8s  %8s  %8s\n%s\n", \
         XCONS_INFO_LINE , \
         "PID", "total_time", "sleep_cnt", "sleep_time", "percent" ,"RQLen",\
         XCONS_INFO_LINE

#define XCONS_SHOW_UKT_SLEEP_STAT_INFO \
           "0x%-8X UKT%-3d  %5d.%-4d       %6d      %4d.%-4d   %6.2f%%   %5d\n"

#define XCONS_SHOW_SUSPEND_HEADER \
         "\nList of suspend reasons:\n%s\n","========================"
#define XCONS_SHOW_SUSPEND_TOTAL                   "\ntotal suspends: %7d\n\n"
#define XCONS_SHOW_SUSPEND_CNT_PERCENT   "%s : %7d ( %6.2f%% ) %s\n"

#define XCONS_SHOW_QUEUES_HEAD            "UKT%d tid 0x%x \n"
#define XCONS_SHOW_UKT_QUEUE_HEAD         "    UKTQueue: \n"
#define XCONS_SHOW_UKT_QUEUE_ELEMENT      "          task T%d \n"
#define XCONS_SHOW_UKT_QUEUE_PRIO_ELEMENT "          task T%d, prio %d\n"
#define XCONS_SHOW_COM_QUEUE_HEAD         "    COMQueue: \n"
#define XCONS_SHOW_COM_QUEUE_ELEMENT      "          task T%d \n"
#define XCONS_SHOW_COM_QUEUE_PRIO_ELEMENT "          task T%d, prio %d\n"
#define XCONS_SHOW_RUN_QUEUE_HEAD         "    RUNQueue: \n"
#define XCONS_SHOW_RUN_QUEUE_ELEMENT      "          task T%-3d (%s), dyn_prio %d, %s\n"
#define XCONS_SHOW_RUN_QUEUE_ELEMENT_REQ  "          task T%-3d (%s), dyn_prio %d, %s %s\n"

// --- database states

#define XCONS_SHOW_STATE_INFO              "\nThe database state is %s\n"
#define XCONS_SHOW_STATE_STARTING          "STARTING      "
#define XCONS_SHOW_STATE_COLD              "COLD          "
#define XCONS_SHOW_STATE_WARM              "WARM          "
#define XCONS_SHOW_STATE_SHTDWN            "SHUTDOWN      "
#define XCONS_SHOW_STATE_SHTDWNREI         "SHUTDOWNREINIT"
#define XCONS_SHOW_STATE_SHTDWNKIL         "SHUTDOWNKILL  "
#define XCONS_SHOW_STATE_STOP              "STOP          "
#define XCONS_SHOW_STATE_KILL              "KILL          "
#define XCONS_SHOW_STATE_ABORT             "ABORT         "
#define XCONS_SHOW_STATE_UNKNOWN           "UNKNOWN       "


// --- task states

#define XCONS_TSK_STATE_INITIALIZE         "Not Connected "
#define XCONS_TSK_STATE_RUNNING            "Running       "
#define XCONS_TSK_STATE_RUNNABLE           "Runnable      "
#define XCONS_TSK_STATE_CONNECTWAIT        "Connect wait  "
#define XCONS_TSK_STATE_VDEVSIZE           "Vdevsize      "
#define XCONS_TSK_STATE_VATTACH            "Vattach       "
#define XCONS_TSK_STATE_V2INFO             "V2info        "
#define XCONS_TSK_STATE_V2BLOCKIO          "V2blockio     "
#define XCONS_TSK_STATE_IO_READ            "IO Wait (R)   "
#define XCONS_TSK_STATE_IO_WRITE           "IO Wait (W)   "
#define XCONS_TSK_STATE_IO2_READ           "IO2 Wait (R)  "
#define XCONS_TSK_STATE_IO2_WRITE          "IO2 Wait (W)  "
#define XCONS_TSK_STATE_VDETACH            "Vdetach       "
#define XCONS_TSK_STATE_VFOPEN             "Vfopen        "
#define XCONS_TSK_STATE_VFREAD             "Vfread        "
#define XCONS_TSK_STATE_VFWRITE            "Vfwrite       "
#define XCONS_TSK_STATE_VFCLOSE            "Vfclose       "
#define XCONS_TSK_STATE_VRELEASE           "Vrelease      "
#define XCONS_TSK_STATE_VBRELEASE          "Vbrelease     "
#define XCONS_TSK_STATE_VSHUTDOWN          "Vshutdown     "
#define XCONS_TSK_STATE_VRECEIVE           "Command wait  "
#define XCONS_TSK_STATE_VREPLY             "Command reply "
#define XCONS_TSK_STATE_VNOPEN             "Vnopen        "
#define XCONS_TSK_STATE_VNRESTART          "Vnrestart     "
#define XCONS_TSK_STATE_VNSHUTDOWN         "Vnshutdown    "
#define XCONS_TSK_STATE_VNREQUEST          "Vnrequest     "
#define XCONS_TSK_STATE_VNRECEIVE          "Net Cmd wait  "
#define XCONS_TSK_STATE_VNCLOSE            "Vnclose       "
#define XCONS_TSK_STATE_VNCLEAR            "Vnclear       "
#define XCONS_TSK_STATE_VBEGEXCL           "Vbegexcl      "
#define XCONS_TSK_STATE_VENDEXCL           "Vendexcl      "
#define XCONS_TSK_STATE_VSUSPEND           "Vsuspend      "
#define XCONS_TSK_STATE_VWAIT              "Vwait         "
#define XCONS_TSK_STATE_VSLEEP             "Vsleep        "
#define XCONS_TSK_STATE_VDIAGINIT          "Diaginit      "
#define XCONS_TSK_STATE_VOPMSG             "Vopmsg        "
#define XCONS_TSK_STATE_LOCKED             "Locked        "
#define XCONS_TSK_STATE_TERMINATED         "Terminated    "
#define XCONS_TSK_STATE_ASYNOPEN           "AsynOpen      "
#define XCONS_TSK_STATE_ASYNCLOSE          "AsynClose     "
#define XCONS_TSK_STATE_ASYNIO             "AsynIO        "
#define XCONS_TSK_STATE_ASYNWAIT           "AsynWait      "
#define XCONS_TSK_STATE_ASYNWAIT_READ      "AsynWaitRead  "
#define XCONS_TSK_STATE_ASYNWAIT_WRITE     "AsynWaitWrite "
#define XCONS_TSK_STATE_VCREATE            "Vcreate       "
#define XCONS_TSK_STATE_VKILL              "Vkill         "
#define XCONS_TSK_STATE_INACTIVE           "Inactive      "
#define XCONS_TSK_STATE_MARKED_FOR_STRT    "Mark for Start"
#define XCONS_TSK_STATE_UNKNOWN            "UNKNOWN       "


// --- KT/UKT states

#define XCONS_KT_STATE_INITIALIZED         "Initialized"
#define XCONS_KT_STATE_RUNNING             "Running    "
#define XCONS_KT_STATE_TERMINATING         "Terminating"
#define XCONS_KT_STATE_TERMINATED          "Terminated "
#define XCONS_KT_STATE_SLEEPING            "Sleeping   "
#define XCONS_KT_STATE_DETACHED            "Detached   "
#define XCONS_KT_STATE_ATTACHED            "Attached   "
#define XCONS_KT_STATE_UNKNOWN             "UNKNOWN"

#define XCONS_UKT_STATE_INITIALIZE         "Initialized"
#define XCONS_UKT_STATE_RUNNING            "Running    "
#define XCONS_UKT_STATE_TERMINATED         "Terminated "
#define XCONS_UKT_STATE_SLEEPING           "Sleeping   "
#define XCONS_UKT_STATE_UNKNOWN            "UNKNOWN"


// --- task types

#define XCONS_TSK_TYPE_TI                  "Timer   "
#define XCONS_TSK_TYPE_TL                  "TLogwr. "
#define XCONS_TSK_TYPE_AL                  "ALogwr. "
#define XCONS_TSK_TYPE_TW                  "Tracewr."
#define XCONS_TSK_TYPE_DW                  "Datawr. "
#define XCONS_TSK_TYPE_SN                  "Sender  "
#define XCONS_TSK_TYPE_RC                  "Receiv. "
#define XCONS_TSK_TYPE_CS                  "Convsc. "
#define XCONS_TSK_TYPE_UT                  "Utility "
#define XCONS_TSK_TYPE_SV                  "Server  "
#define XCONS_TSK_TYPE_US                  "User    "
#define XCONS_TSK_TYPE_UNKNOWN             "UNKNOWN"

// --- task request types

#define XCONS_REQ_VATTACH                     "REQ_VATTACH"
#define XCONS_REQ_VBLOCKIO                    "REQ_VBLOCKIO"
#define XCONS_REQ_VDETACH                     "REQ_VDETACH"
#define XCONS_REQ_INITOK                      "REQ_INITOK"
#define XCONS_REQ_VRESUME                     "REQ_VRESUME"
#define XCONS_REQ_VSIGNAL                     "REQ_VSIGNAL"
#define XCONS_REQ_VSLEEP                      "REQ_VSLEEP"
#define XCONS_REQ_CONNECT                     "REQ_CONNECT"
#define XCONS_REQ_RELEASE                     "REQ_RELEASE"
#define XCONS_REQ_VRECEIVE                    "REQ_VRECEIVE"
#define XCONS_REQ_SHUTDOK                     "REQ_SHUTDOK"
#define XCONS_REQ_SENDER_JOB_FREE             "REQ_SENDER_JOB_FREE"
#define XCONS_REQ_VENDEXCL                    "REQ_VENDEXCL"
#define XCONS_REQ_RESCHEDULE                  "REQ_RESCHEDULE"
#define XCONS_REQ_SHUTDOWN_RESUME_TW          "REQ_SHUTDOWN_RESUME_TW"
#define XCONS_REQ_ASYNOPEN                    "REQ_ASYNOPEN"
#define XCONS_REQ_ASYNCLOSE                   "REQ_ASYNCLOSE"
#define XCONS_REQ_ASYNIO                      "REQ_ASYNIO"
#define XCONS_REQ_ASYNWAIT                    "REQ_ASYNWAIT"
#define XCONS_REQ_VNSHUTDOWN_REPLY            "REQ_VNSHUTDOWN_REPLY"
#define XCONS_REQ_OUTGOING_CONNECT            "REQ_OUTGOING_CONNECT"
#define XCONS_REQ_OUTGOING_CONNECT_REPLY      "REQ_OUTGOING_CONNECT_REPLY"
#define XCONS_REQ_OPEN_WAKEUP_SD              "REQ_OPEN_WAKEUP_SD"
#define XCONS_REQ_CONNECT_RC                  "REQ_CONNECT_RC"
#define XCONS_REQ_RELEASE_RC                  "REQ_RELEASE_RC"
#define XCONS_REQ_CLOSE_OUTGOING              "REQ_CLOSE_OUTGOING"
#define XCONS_REQ_CLOSE_OUTGOING_REPLY        "REQ_CLOSE_OUTGOING_REPLY"
#define XCONS_REQ_FINISH_SV                   "REQ_FINISH_SV"
#define XCONS_REQ_ASYNCNTL                    "REQ_ASYNCNTL"
#define XCONS_REQ_VMARK_BAD_DEV               "REQ_VMARK_BAD_DEV"
#define XCONS_REQ_TYPE_UNKNOWN                "REQ_UNKNOWN"

// --- task storage descriptions

#define XCONS_STOR_DES_CODESIZE            "CODESIZE"
#define XCONS_STOR_VDES_CODESIZE           "KB"
#define XCONS_STOR_DES_TSK_STACK_SIZE      "TASK_STACKSIZE"
#define XCONS_STOR_VDES_TSK_STACK_SIZE     "KB"
#define XCONS_STOR_DES_KGS                 "KERNEL_GLOB_SECTION"
#define XCONS_STOR_VDES_KGS                "KB"
#define XCONS_STOR_DES_KSS                 "KERNEL_SHRD_SECTION"
#define XCONS_STOR_VDES_KSS                "KB"
#define XCONS_STOR_DES_SHRD_DYN_POOLFREE   "UNUSED_SHARED_DYN_POOL"
#define XCONS_STOR_VDES_SHRD_DYN_POOLFREE  "KB"
#define XCONS_STOR_DES_SHRD_DYN_POOL_USED  "USED_SHARED_DYN_POOL"
#define XCONS_STOR_VDES_SHRD_DYN_POOL_USED "KB"
#define XCONS_STOR_DES_SHRD_DYN_DATFREE    "UNUSED_SHARED_DYN_DATA"
#define XCONS_STOR_VDES_SHRD_DYN_DATFREE   "PAGES"
#define XCONS_STOR_DES_SHRD_DYN_DAT_USED   "USED_SHARED_DYN_DATA"
#define XCONS_STOR_VDES_SHRD_DYN_DAT_USED  "PAGES"
#define XCONS_STOR_DES_RTE_ALL_POOL_USED   "USED_RTE_ALLOC_POOL"
#define XCONS_STOR_VDES_RTE_ALL_POOL_USED  "KB"
#define XCONS_STOR_DES_RTE_ALL_POOL_MAX    "MAX_RTE_ALLOC_POOL"
#define XCONS_STOR_VDES_RTE_ALL_POOL_MAX   "MB"
#define XCONS_STOR_DES_KRN_ALL_POOL_USED   "USED_KERNEL_ALLOC_POOL"
#define XCONS_STOR_VDES_KRN_ALL_POOL_USED  "KB"
#define XCONS_STOR_DES_KRN_ALL_POOL_MAX    "MAX_KERNEL_ALLOC_POOL"
#define XCONS_STOR_VDES_KRN_ALL_POOL_MAX   "KB"
#define XCONS_STOR_DES_EXISTING_TASKS      "EXISTING_TASKS"
#define XCONS_STOR_VDES_EXISTING_TASKS     ""

// --- task rte descriptions

#define XCONS_RTE_DESC_DEV_VTRACE          "DEV-VTRACE"
#define XCONS_RTE_DESC_DEV                 "DEV"
#define XCONS_RTE_DESC_UKT                 "UKT%-7d"

// --- task version descriptions
#define XCONS_VERS_DESC_KERNEL             "KERNEL"
#define XCONS_VERS_DESC_RTE                "RTE"

//
// --- XSHOW ---
//
#define XSHOW_GATEWAYS                     "\nGateways: \n"
#define XSHOW_SERVERDBS                    "\nSERVERDBs: \n"
#define XSHOW_SERVERDB_GW_RUNNING          "  - %-18.18s  [Running]\n"
#define XSHOW_SERVERDB_GW_STOPPED          "  - %-18.18s  [Stopped]\n"
#define XSHOW_SERVERDB_GW_VER_RUNNING      "  - %-18.18s '%-40.40s'  [Running]\n"
#define XSHOW_SERVERDB_GW_VER_STOPPED      "  - %-18.18s '%-40.40s'  [Stopped]\n"
#define XSHOW_SERVERDB_GW_DBR_RUNNING      "  - %-18.18s '%-41.41s  [Running]\n"
#define XSHOW_SERVERDB_GW_DBR_STOPPED      "  - %-18.18s '%-41.41s  [Stopped]\n"
#define XSHOW_NO_SERVERDBS_GATEWAYS        "  [ N O N E ]\n"
#define XSHOW_XSERVER_ACTIVE               "\nXSERVER is active.\n"
#define XSHOW_XSERVER_NOT_ACTIVE           "\nXSERVER is not active.\n"
#define XSHOW_XSERVER_NOT_INSTALLED        "\nXSERVER is not installed.\n"
#define XSHOW_XSERVER_VER_ACTIVE           "\nXSERVER '%-40.40s' is active.\n"
#define XSHOW_XSERVER_VER_NOT_ACTIVE       "\nXSERVER '%-40.40s' is not active.\n"
#define XSHOW_XSERVER_DBR_ACTIVE           "\nXSERVER '%-41.41s is active.\n"
#define XSHOW_XSERVER_DBR_NOT_ACTIVE       "\nXSERVER '%-41.41s is not active.\n"



//
// --- DIAGNOSE / MESSAGES OUTPUT ---
//
#define LAST_CHANCE_INFO         "Last Chance Information"
#define ERR_LONG_DESCRIPTION     "ERROR"
#define IERR_LONG_DESCRIPTION    "INTERNAL ERROR"
#define INFO_LONG_DESCRIPTION    "INFO"
#define WRN_LONG_DESCRIPTION     "WARNING"

#define BIG_HEADER_INFO_LINE     "--------------------------------------------------------------------------------\r\n"\
                                 "Date  Time       TID(hex) Typ MsgID Label    Message-Text\r\n"\
                                 "--------------------------------------------------------------------------------\r\n"
#define TIME_HEADER_INFO_LINE    "--------------------------------------------------------------------------------\r\n"\
                                 "Date  Time     Message-Text\r\n"\
                                 "--------------------------------------------------------------------------------\r\n"

#define ERR_FILE_OPEN_LINE       "%02d-%02d %02d:%02d:%02d --- Starting ---\r\n"
#define BIG_HEADER_FORMAT_STR    "%02d-%02d %02d:%02d:%02d %10.10s %3.3s %5d %-8.8s "
#define TIME_HEADER_FORMAT_STR   "%02d-%02d %02d:%02d:%02d "
#define SMALL_HEADER_FORMAT_STR  "%5d %s: "
#define E_LOG_HEADER_FORMAT_STR  ":\r\n - %s   TID: %s  PID: %s  MsgID: %d\r\n  "


#define BEGIN_OF_DIAG_WRITE_CYCLE  "\r\n============================= begin of write cycle =============================\r\n\r\n\r\n"

#define CURR_DIAG_WRITE_POS        "---------------------------- current write position ----------------------------\r\n"
#define END_OF_DIAG_WRITE_CYCLE    "\r\n=============================  end of write cycle  ============================="

// ================================= END ==========================================================================================
.CM *-END-* code ----------------------------------------
.SP 2
***********************************************************
