Find Entry Number in Message List (QGYFNDME) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Find Entry Number in Message List (QGYFNDME) API returns the number of the entry in a list of messages for a given key value. This API may be used on a list generated by the following APIs:


Authorities and Locks

None.


Required Parameter Group

Request handle
INPUT; CHAR(4)

The handle of the list, generated by one of the list messages APIs.

Number of keys
INPUT; BINARY(4)

The number of elements, within the key field information array, to search.

Key field information
INPUT; ARRAY(*) of CHAR(12)

The offset and length of information to search.


Key field values
INPUT; ARRAY(*) of CHAR(30)

The value of the fields indicated in the key field information parameter to search for.

Entry number
OUTPUT; BINARY(4)

The number of the first entry in the list in which the key is found. If the key is not found in a sorted list, the number of the entry previous to where the requested entry would have been is returned (a 1 is returned if the entry not found is the first entry in the list). If the key is not found in an unsorted list, a 1 is returned. If the list is empty, a 0 is returned.

Key found
OUTPUT; CHAR(1)

Whether the entry returned is for the key requested or the key was not found. The possible values are:


Message type information
INPUT; CHAR(10)

The type of message to search for. A valid value must be specified if the messages have been grouped. The possible values are:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V3R6

[ Back to top | Process Open List APIs | APIs by category ]