OSI/MHS Gateway Programmatic Interface (GPI) Reference Manual
Return Codes
OSI/MHS Gateway Programmatic Interface (GPI) Reference Manual—522223-001
B-26
4000 ZGPI-RC-SEGMENT-ALREADY-IN-USE
4000  ZGPI-RC-SEGMENT-ALREADY-IN-USE
Cause. A requested segment is already in use. This condition occurs when the GPI is 
reinitialized after it has already been initialized successfully.
Effect. All sessions are closed and the GPI is completely reinitialized.
Recovery. This is a warning condition. You can continue processing but should check 
the logic of your program to determine why the problem occurs. If you call 
GPI_STATUS_ when this condition occurs, the secondary code contains the segment 
identifier.
4001  ZGPI-RC-OPEN-WAIT-GIP-ERROR
Cause. The GPI is not able to open the GIP with waited I/O.
Effect. The session is closed automatically.
Recovery. Call GPI_STATUS_ and check the secondary code, which contains the 
Guardian 90 file system error. Try again to open a session.
4003  ZGPI-RC-CLOSE-WAIT-GIP-ERROR
Cause. The GPI is not able to close the GIP with waited I/O.
Effect. Processing continues.
Recovery. This is a warning condition. You can call GPI_STATUS_ and check the 
secondary code, which contains the Guardian 90 file system error. 
NO-OUTPUT-FROM-GIP 4005 Expected output parameters not returned from 
GIP process.
STRING-TOO-LONG 4006 Long string must be accessed by 
GPI_OM_READ_ or GPI_OM_WRITE_.
OT-COUNT-MISMATCH-TBL 4007 GPI internal statistics and object tree are not 
synchronized.
EXCEEDED-RESERVED-OTS 4008 Maximum number of TMF transactions 
exceeded.
CLOSE-SCP-ERROR 4009 Problem occurred while closing SCP process.
OPEN-SCP-ERROR 4010 Problem occurred while opening SCP process.
SPI-CMD-ERROR 4011 SPI command error occurred.
NO-GIPS 4012 No GIPs are available.
SESSION-ABORTED 4013 GPI aborted session because GIP was stopped 
and restarted for another session.
Table B-8. ZGPI-RC- Codes for GPI-Library Errors (page 2 of 2)
Constant (ZGPI-RC-) Value Meaning










