Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM Data Queue APIs--Categories - FTP Directory Listing - IBM
Retrieve User Space (QUSRTVUS) API Retrieve User Space (QUSRTVUS) API Required Parameter Group: 1 Qualified user space name Input Char(20) 2 Starting position Input Binary(4) 3 Length of data Input Binary(4) 4 Receiver variable Output Char(*) Optional Parameter: 5 Error code I/O Char(*) Threadsafe: Yes The Retrieve User Space (QUSRTVUS) API allows you to retrieve the contents of a user space. The QUSRTVUS API does not retrieve descriptive information about the user space object, such as its size. To retrieve information about the attributes of a user space, refer to the Retrieve User Space Attributes (QUSRUSAT) API. If you are repeatedly accessing the contents of a user space and are using an HLL that supports pointers, see ; this API provides a pointer to the user space for improved performance. When you have obtained a pointer, you use pointer arithmetic to access the contents of a user space. Note: To determine the starting position for the QUSRTVUS API, you must add 1 to the offset value. In contrast to the OS/400 list APIs, which use an offset value based on 0 for the starting position, the QUSRTVUS API uses a value based on 1. For the QUSRTVUS API, the first character in the user space is at position 1. Authorities and Locks Library Authority *EXECUTE User Space Authority *USE User Space Lock *SHRNUP http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvus.htm (1 of 4) [10/4/1999 2:35:13 PM]
Retrieve User Space (QUSRTVUS) API Required Parameter Group Qualified user space name INPUT; CHAR(20) The first 10 characters contain the user space name, and the second 10 characters contain the name of the library where the user space is located. The special values supported for the library name are *LIBL and *CURLIB. Starting position INPUT; BINARY(4) The first byte of the user space to be retrieved. A value of 1 will identify the first character in the user space. Length of data INPUT; BINARY(4) The length of the data to retrieve. This length must not be larger than the size of the variable that is to receive the data. It must also be greater than 0. Receiver variable OUTPUT; CHAR(*) The variable that will receive the contents of the user space being retrieved. Optional Parameter Error code I/O; CHAR(*) The structure in which to return error information. For the format of the structure, see The structure in which to return error information. For the format of the structure, see Error Code Parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application. Error Messages CPF24B4 E Severe error while addressing parameter list. CPF3CF1 E Error code parameter not valid. CPF3C0F E Value &1 for starting position parameter is not valid. CPF3C06 E Information not retrieved from user space &1. CPD3C0F D http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvus.htm (2 of 4) [10/4/1999 2:35:13 PM]
- Page 65 and 66: Create User Index (QUSCRTUI) API Se
- Page 67 and 68: Create User Index (QUSCRTUI) API ht
- Page 69 and 70: Delete User Index (QUSDLTUI) API Al
- Page 71 and 72: Remove User Index Entries (QUSRMVUI
- Page 73 and 74: Remove User Index Entries (QUSRMVUI
- Page 75 and 76: Remove User Index Entries (QUSRMVUI
- Page 77 and 78: Remove User Index Entries (QUSRMVUI
- Page 79 and 80: Retrieve User Index Attributes (QUS
- Page 81 and 82: Retrieve User Index Attributes (QUS
- Page 83 and 84: Retrieve User Index Attributes (QUS
- Page 85 and 86: Retrieve User Index Entries (QUSRTV
- Page 87 and 88: Retrieve User Index Entries (QUSRTV
- Page 89 and 90: Retrieve User Index Entries (QUSRTV
- Page 91 and 92: Retrieve User Index Entries (QUSRTV
- Page 93 and 94: User Space APIs the user space, suc
- Page 95 and 96: Change User Space (QUSCHGUS) API Re
- Page 97 and 98: Change User Space (QUSCHGUS) API Al
- Page 99 and 100: Change User Space Attributes (QUSCU
- Page 101 and 102: Change User Space Attributes (QUSCU
- Page 103 and 104: Create User Space (QUSCRTUS) API Cr
- Page 105 and 106: Create User Space (QUSCRTUS) API IN
- Page 107 and 108: Create User Space (QUSCRTUS) API de
- Page 109 and 110: Create User Space (QUSCRTUS) API CP
- Page 111 and 112: Delete User Space (QUSDLTUS) API Q.
- Page 113 and 114: Retrieve Pointer to User Space (QUS
- Page 115: Retrieve Pointer to User Space (QUS
- Page 119 and 120: Retrieve User Space (QUSRTVUS) API
- Page 121 and 122: Retrieve User Space Attributes (QUS
- Page 123 and 124: Retrieve User Space Attributes (QUS
- Page 125 and 126: Change Library List (QLICHGLL) API
- Page 127 and 128: Change Library List (QLICHGLL) API
- Page 129 and 130: Change Object Description (QLICOBJD
- Page 131 and 132: Change Object Description (QLICOBJD
- Page 133 and 134: Change Object Description (QLICOBJD
- Page 135 and 136: Change Object Description (QLICOBJD
- Page 137 and 138: Change Object Description (QLICOBJD
- Page 139 and 140: Convert Type (QLICVTTP) API convers
- Page 141 and 142: List Objects (QUSLOBJ) API Authorit
- Page 143 and 144: List Objects (QUSLOBJ) API QRCL QUS
- Page 145 and 146: List Objects (QUSLOBJ) API also can
- Page 147 and 148: List Objects (QUSLOBJ) API any of t
- Page 149 and 150: List Objects (QUSLOBJ) API *ANY Any
- Page 151 and 152: List Objects (QUSLOBJ) API OBJL0200
- Page 153 and 154: List Objects (QUSLOBJ) API 480 1E0
- Page 155 and 156: List Objects (QUSLOBJ) API the list
- Page 157 and 158: List Objects (QUSLOBJ) API Licensed
- Page 159 and 160: List Objects (QUSLOBJ) API Temporar
- Page 161 and 162: List Objects (QUSLOBJ) API partiall
- Page 163 and 164: List Objects (QUSLOBJ) API Call lev
- Page 165 and 166: Materialize Context (QusMaterialize
Retrieve User Space (QUSRTVUS) API<br />
Retrieve User Space (QUSRTVUS) API<br />
Required Parameter Group:<br />
1 Qualified user space name Input Char(20)<br />
2 Starting position Input Binary(4)<br />
3 Length of data Input Binary(4)<br />
4 Receiver variable Output Char(*)<br />
Optional Parameter:<br />
5 Error code I/O Char(*)<br />
Threadsafe: Yes<br />
The Retrieve User Space (QUSRTVUS) API allows you to retrieve the contents of a user space. The<br />
QUSRTVUS API does not retrieve descriptive information about the user space object, such as its size. To<br />
retrieve information about the attributes of a user space, refer to the Retrieve User Space Attributes<br />
(QUSRUSAT) API.<br />
If you are repeatedly accessing the contents of a user space and are using an HLL that supports pointers,<br />
see ; this API provides a pointer to the user space for improved performance. When you have obtained a<br />
pointer, you use pointer arithmetic to access the contents of a user space.<br />
Note: To determine the starting position for the QUSRTVUS API, you must add 1 to the offset value. In<br />
contrast to the OS/400 list <strong>APIs</strong>, which use an offset value based on 0 for the starting position, the<br />
QUSRTVUS API uses a value based on 1. For the QUSRTVUS API, the first character in the user space is<br />
at position 1.<br />
Authorities and Locks<br />
Library Authority<br />
*EXECUTE<br />
User Space Authority<br />
*USE<br />
User Space Lock<br />
*SHRNUP<br />
http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qusrtvus.htm (1 of 4) [10/4/1999 2:35:13 PM]