Open List of Validation List Entries (QSYOLVLE) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Open List of Validation List Entries (QSYOLVLE) API returns a list of validation list entries in a validation list object. Upon successful completion of this API, a handle is returned in the list information parameter. You may use this handle on subsequent calls to the following APIs:


Authorities and Locks

Authority to Validation List
*USE
Authority to Validation List Library
*EXECUTE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. If the length is larger than the size of the receiver variable, the results are not predictable.

List Information
OUTPUT; CHAR(80)

Information about the list that is created by this program. See Format of List information for a description of the layout of this parameter.

Number of records to return
INPUT; BINARY(4)

The number of records in the list to put into the receiver variable. Possible values follow:



Format name
INPUT; CHAR(8)

The name of the format that is used to return information about the validation list entries.

You can specify these formats:



Qualified validation list name
INPUT; CHAR(20)

The qualified object name of the validation list that contains the entries to return. The first 10 characters specify the validation list name, and the second 10 characters specify the library. You can use these special values for the library name:



Error code
I/O; CHAR(*)

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


Format of List information

For detailed descriptions of the fields in the tables, see Field Descriptions.



Field Descriptions

Date and time created. The date and time when the list was created. The 13 characters are:

First record in buffer. The number of the first record in the receiver variable.

Information complete indicator. Whether all information that was requested has been supplied.

Length of information returned. The size in bytes of the information returned in the receiver variable.

List status indicator. The status of building the list. Possible values follow:

Record length. The length of each record of information returned. This value will be set to 0 because the record lengths are variable. You can obtain the length of individual records from the records themselves.

Records returned. The number of records returned in the receiver variable.

This is the smallest of the following three values:

Request handle. The handle of the request that can be used for subsequent requests of information from the list. The handle is valid until the Close List (QGYCLST) API is called to close the list, or until the job ends.

Note: This field should be treated as a hexadecimal field. It should not be converted from one CCSID to another, for example, EBCDIC to ASCII, because doing so could result in an unusable value.

Reserved. An ignored field.

Total records. The total number of records available in the list.

VLDE0100 Format

The following table describes the order and format of the data that is returned in the receiver variable for each validation list entry in the list. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

CCSID of encrypted data. The CCSID of the encrypted data that was specified when the validation list entry was added or changed.

CCSID of entry data. The CCSID of the entry data that was specified when the validation list entry was added or changed.

CCSID of entry ID. The CCSID of the entry ID that was specified when the validation list entry was added.

Displacement to encrypted data. The displacement in the entry to the start of the encrypted data.

Displacement to entry data. The displacement in the entry to the start of the entry data.

Displacement to entry ID. The displacement in the entry to the start of the entry ID.

Encrypted data. The encrypted data associated with the validation list entry. This data is only returned if the entry specifies that the encrypted data is two way encrypted, the QRETSVRSEC system value is '1', and the user has *USE, *ADD, and *UPD authority to the validation list. If the data is to be returned, it is decrypted and returned in this field.

Entry data. The data associated with the validation list entry.

Entry ID. The entry ID for the validation list entry.

Length of encrypted data. The length (in bytes) of the encrypted data. If the data is one-way encrypted, the QRETSVRSEC system value is '0', or the user is not authorized to have the encrypted data returned, this value will be 0.

Length of entry. The length (in bytes) of the current entry. This length can be used to access the next entry.

Length of entry data. The length (in bytes) of the entry data.

Length of entry ID. The length (in bytes) of the entry ID.

Error Messages



API introduced: V4R2

[ Back to top | Security APIs | APIs by category ]