OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide
Recovering From Errors
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide—424822-001
6-16
Information Buffer Structures
printfld (" Code 2: ",
struct_5_ptr.z_data.z_code2);
printfld (" Code 3: ",
struct_5_ptr.z_data.z_code3);
printfld (" Code 4: ",
struct_5_ptr.z_data.z_code4);
printfd (" Code 5: ",
struct_5_ptr.z_data.z_code5);
END;
END; -- End print_info_buffer
Information Buffer Structures
The GPI_STATUS_ procedure returns data to a structure called the information buffer.
The client program provides space in memory and provides a pointer to that space using
the info-buffer parameter to GPI_STATUS_.
For a detailed view of the structure of the information buffer, see the OSI/MHS Gateway
Programmatic Interface (GPI) Reference Manual.
Z-STRUCT-TYPE
The 32-bit structure type (Z-STRUCT-TYPE) is provided at the beginning of each
structure contained in the information buffer. There are five possible values for
Z-STRUCT-TYPE.
If the actual buffer length returned from the GPI is greater than zero, the information
buffer contains some error information. The five structure types for which information
is returned are described in the following DDL definitions and field descriptions.
Z-STRUCT-TYPE
CONSTANT ZGPI-ST-ERROR-ATTR TYPE BINARY 32 VALUE 10.
CONSTANT ZGPI-ST-DANGLING-OBJ TYPE BINARY 32 VALUE 20.
CONSTANT ZGPI-ST-INFO-3 TYPE BINARY 32 VALUE 30.
CONSTANT ZGPI-ST-INFO-4 TYPE BINARY 32 VALUE 40.
CONSTANT ZGPI-ST-INFO-5 TYPE BINARY 32 VALUE 50.