Add Validation List Entry (QSYADVLE) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Add Validation List Entry (QSYADVLE) API adds an entry to a validation list object. Entries are stored in hexadecimal sort sequence. The first entry will always be the one in which the entry ID has the smallest hexadecimal value.

Conversions are not done on any data when entries are added. The CCSID value for each field is stored as part of the record but is not used when the entry is added to the validation list.


Authorities and Locks

Validation List Object
*USE and *ADD
Validation List Object Library
*EXECUTE

Required Parameter Group

Qualified validation list name
INPUT; CHAR(20)

The qualified object name of the validation list to add the entry to. 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:



Entry ID information
INPUT; CHAR(*)

The format of the entry ID information is as follows. See the Field Descriptions for more information.



Data to encrypt information
INPUT; CHAR(*)

Data that is associated with the entry ID and is encrypted by the system when it is stored.

The format of the data to encrypt information is as follows. See the Field Descriptions for more information.



Entry data information
INPUT; CHAR(*)

Data information that is associated with the entry ID. The format of the entry data information is as follows. See the Field Descriptions for more information.



Attribute information
INPUT; CHAR(*)

Attribute information that is associated with the entry. The format of the attribute information is as follows. See the Field Descriptions for more information.



The format of the attribute structure is as follows. See the Field Descriptions for more information.



For attributes that are stored in the validation list object, the format of the attribute data is as follows. See the Field Descriptions for more information.



Error code
I/O; CHAR(*)

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


Field Descriptions

Attribute data. The information that describes the attribute data.

Attribute ID. The ID of the attribute. For system-defined attributes, the allowed values are:


Attribute location. Where the attribute should be stored.

The allowed value is:

Attribute structures. Zero or more attribute structures that define the attributes to be associated with the entry.

Attribute type. The type of attribute.

The allowed value follows:


Attribute value. The value of the attribute that is associated with the entry.

For the QsyEncryptData attribute, the allowed values follow:


CCSID of attribute. An integer that represents the CCSID for the attribute. Valid CCSID values are in the range -1 through 65535.

The special values follow:

CCSID of data to encrypt. An integer that represents the CCSID for the data to encrypt. Valid CCSID values are in the range 1 through 65535.

The special value follows:

CCSID of data. An integer that represents the CCSID for the entry data. Valid CCSID values are in the range 1 through 65535.

The special value follows:

CCSID of entry ID. An integer that represents the CCSID for the entry ID. Valid CCSID values are in the range 1 through 65535.

The special value follows:

Data. The data to store in the validation list entry.

Data to encrypt. The data to be encrypted before storing it in the validation list entry.

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

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

Entry ID. The data that is used to identify this entry in the validation list.

Length of attribute. The number of bytes of data in the attribute value. The length must be greater than 0. For the QsyEncryptData attribute, the length must be 1.

Length of attribute data. The number of bytes of data in the attribute data structure. The length must be greater than 0.

Length of attribute entry. The length (in bytes) of the current entry. This length can be used to access the next entry, and must be a multiple of 4.

Length of attribute ID. The number of bytes of data in the attribute ID. The length must be greater than 0.

Length of data to encrypt. The number of bytes of data to be encrypted and stored in this validation list entry. Possible values are 0 through 600. If the length is 0, no encrypted data will be stored in the entry.

Length of data. The number of bytes of data to be stored in this validation list entry. Possible values are 0 through 1000. If the length is 0, no data will be stored in the entry.

Length of entry ID. The number of bytes of data that is provided as the entry ID. Possible values are 1 through 100.

Number of attributes. The number of attributes to be added. This value must be greater than or equal to 0. If this value is 0, then no attributes will be added to the entry.

Reserved. This is an ignored field.


Error Messages



API introduced: V4R1

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