KCML return codes

The following values can be returned by KCML in certain circumstances. The same values could also be returned by $END, using the syntax:

$END return_value

It is therefore sensible to restrict application program return values to the range 1-100, so as not to confuse their return values with those from KCML.

If KCML terminates with one of these exit codes you can also consult the system log (the application event log for NT or syslog for Unix) to see if KCML reports any more specific information.

Exit codeReason
0Normal successful termination
101Error during initialization
102KCML license expired
103Client disconnected*
106Memory error cannot panic
107Licensing problem
108CORBA initialization error
109Internal error
110Assertion failed
111Internal error
112KTERM terminal not in terminal database
113PANIC due to runtime error
114Program error or forced panic
115PANIC statement executed
116Internal error
117Internal error
118Internal error
119Internal error
120Internal error
121Internal error
122Internal error
123Internal error
124Internal error
125Internal error
126Unable to open TERMFILE
128KCML checksum failed
129Screen saver terminated
130Terminated on SIGTERM signal
131Runtime only system
132Wrong grace password
133Recursive PANIC
134Unable to find error file
135Unable to find terminal file
136Error in shm or semaphore
137Read failed - disconnected
138Select failed - read disconnected
139Write failed - disconnected
140Select failed - write disconnected
141Internal error during startup
142Unable to load CORBA shared lib
143Unable to allocate heap
144Unable to allocate #PART
145Unable to allocate #TERM
146Unable to determine ttyname
147Memory error creating $PSTAT
148Invalid KCML command line
150Unable to open registry TERMFILE key
151Internal error, session chain enter
152Internal error, session chain exit
153PANIC statement
154Client version not supported, upgrade
155Terminated on SIGKILL signal
156PANIC while in SOAP method call
157Keep running conection problem
158Unable to find configuration file
159We think we can't write the error message
160Exception handler closed the program
161Failed to load environment from kconf.xml
162KCML terminated due to signal
163Unable to load knewforms.dll
164Run-time error, no PANIC generated
165Couldn't setup intial connection
166Invalid language specified in --lang option
167HTTP read failed
168Not supported for binary programs
169Attempted to call an indirected function but the library load failed
170Indirected function not found
171Termination from STOP statement
172Bad SSO token passed to KCML at startup
173SSO functions not found in kwebserv so
174SSO failed to load kwebserv so