Data Queue APIs--Categories - FTP Directory Listing - IBM

Data Queue APIs--Categories - FTP Directory Listing - IBM Data Queue APIs--Categories - FTP Directory Listing - IBM

as400bks.rochester.ibm.com
from as400bks.rochester.ibm.com More from this publisher
30.06.2013 Views

Retrieve User Index Entries (QUSRTVUI) API 7 8 Find the first index entry or entries. Last Find the last index entry or entries. Between Find all entries between the two arguments specified in the search criteria. Search criteria INPUT; CHAR(*) The criteria used to find matches in the user index. If the search type is 8 (between), both search elements must have the same length. When the search type is 8 (between), this parameter contains two search elements. The first element is considered the starting element, and the second element is the ending element. This parameter is ignored when the search type parameter is 6 (first) or 7 (last). Length of search criteria INPUT; BINARY(4) The length of the search criteria that is to be used. This parameter is ignored when the search type is 6 (first) or 7 (last). If the search type is 8 (between), this parameter specifies the length of the first element. The second element must have the same length as the first element. Valid values are 1-2000, depending on how the user index was created. For a fixed and keyed user index, the length of the search criteria: ❍ Can be greater than the length of the key ❍ Must be less than or equal to the entry length Search criteria offset INPUT; BINARY(4) The offset of the second search element from the beginning of the search criteria parameter. This parameter is ignored unless the search type is 8 (between). Error code I/O; CHAR(*) The structure in which to return error information. For the format of the structure, see Error Code Parameter. http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvui.htm (5 of 8) [10/4/1999 2:34:12 PM]

Retrieve User Index Entries (QUSRTVUI) API Format for Entry Lengths and Entry Offsets The following information is returned in the entry lengths and entry offsets parameter. The information is needed to parse through the receiver variable. For detailed descriptions of the fields in the table, see Field Descriptions. Offset Dec Hex Type Field 0 0 BINARY(4) Bytes returned 4 4 BINARY(4) Bytes available Note: The following fields will be repeated. The number of times they are repeated depends on the length of the entry lengths and entry offsets parameter and the number of entries actually retrieved. BINARY(4) Entry length BINARY(4) Entry offset IDXE0100 Format The following index information is returned for the IDXE0100 format in the receiver variable parameter. For detailed descriptions of the fields in the table, see Field Descriptions. Offset Dec Hex Type Field 0 0 BINARY(4) Bytes returned 4 4 BINARY(4) Bytes available 8 8 CHAR(*) Entry 1-n Field Descriptions Bytes available. The length of all data available to return. All available data is returned if enough space is provided. Bytes returned. The length of the data actually returned. Entry length. The length of the entry retrieved from the index. Valid values are 1-2000, depending on how the user index was created. Entry offset. The number of bytes from the beginning of the immediately preceding entry to the first byte of the entry returned. For the first entry, the offset is the number of bytes from the beginning of the receiver variable to the first byte of the first entry. Entry 1-n. All entries that satisfy the search criteria (up to the maximum number of entries parameter) are returned. User indexes are created to contain only scalar data, which results in the index entries being contiguous. Use the entry length and entry offset values to parse this field. This field is repeated by the value in the number of entries returned parameter if the receiver variable is http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvui.htm (6 of 8) [10/4/1999 2:34:12 PM]

Retrieve User Index Entries (QUSRTVUI) API<br />

7<br />

8<br />

Find the first index entry or entries.<br />

Last<br />

Find the last index entry or entries.<br />

Between<br />

Find all entries between the two arguments specified in the search criteria.<br />

Search criteria<br />

INPUT; CHAR(*)<br />

The criteria used to find matches in the user index.<br />

If the search type is 8 (between), both search elements must have the same length. When the search<br />

type is 8 (between), this parameter contains two search elements. The first element is considered the<br />

starting element, and the second element is the ending element.<br />

This parameter is ignored when the search type parameter is 6 (first) or 7 (last).<br />

Length of search criteria<br />

INPUT; BINARY(4)<br />

The length of the search criteria that is to be used. This parameter is ignored when the search type is<br />

6 (first) or 7 (last).<br />

If the search type is 8 (between), this parameter specifies the length of the first element. The second<br />

element must have the same length as the first element. Valid values are 1-2000, depending on how<br />

the user index was created.<br />

For a fixed and keyed user index, the length of the search criteria:<br />

❍ Can be greater than the length of the key<br />

❍ Must be less than or equal to the entry length<br />

Search criteria offset<br />

INPUT; BINARY(4)<br />

The offset of the second search element from the beginning of the search criteria parameter. This<br />

parameter is ignored unless the search type is 8 (between).<br />

Error code<br />

I/O; CHAR(*)<br />

The structure in which to return error information. For the format of the structure, see Error Code<br />

Parameter.<br />

http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvui.htm (5 of 8) [10/4/1999 2:34:12 PM]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!