Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Retrieve User Index Entries (QUSRTVUI) API<br />
User Index Lock<br />
*SHRUPD<br />
Required Parameter Group<br />
Receiver variable<br />
OUTPUT; CHAR(*)<br />
The variable that is to receive the information requested. You can specify the size of this area to be<br />
smaller than the format requested as long as you specify the length parameter correctly. As a result,<br />
the API returns only the data that the area can hold.<br />
Use the entry lengths and entry offsets parameter to parse through this parameter. If the number of<br />
entries returned parameter is 0, then only the bytes available and the bytes provided have been<br />
changed.<br />
To determine if all the entries are valid in the receiver variable, compare the bytes returned and<br />
bytes available fields. If the bytes returned are less than the bytes available, your receiver variable is<br />
not large enough to hold all the entries that match the search criteria parameter. While processing<br />
the entries, you need to make sure that both:<br />
❍ Your current offset in the receiver variable plus the entry offset is less than the length of the<br />
receiver variable<br />
❍ Your current offset in the receiver variable plus the entry offset plus the entry length is less<br />
than the length of the receiver variable.<br />
The size of the receiver variable parameter should be greater than or equal to:<br />
8 + (the maximum number of entries parameter<br />
* the maximum entry length)<br />
The maximum entry length was defined when the index was created. It can be obtained by using the<br />
Retrieve User Index Attributes (QUSRUIAT) API.<br />
Refer to the IDXE0100 Format for the layout of this parameter.<br />
Length of receiver variable<br />
INPUT; BINARY(4)<br />
The length of the receiver variable. If the length is larger than the size of the receiver variable, the<br />
results may not be predictable. The minimum length is 8 bytes.<br />
Entry lengths and entry offsets<br />
OUTPUT; ARRAY(*) of CHAR(8)<br />
A data structure containing entry lengths and entry offsets for all entries found that met the search<br />
criteria. An entry length and entry offset exist for every entry returned in the receiver variable.<br />
These entry lengths and entry offsets are used to parse through the receiver variable.<br />
The size of the entry lengths and entry offsets parameter should be at least:<br />
http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvui.htm (2 of 8) [10/4/1999 2:34:12 PM]