Change Validation List Entry (QSYCHVLE) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Change Validation List Entry (QSYCHVLE) API changes an entry in a validation list object. The data to be encrypted, the entry data values, and some of the entry attributes may be changed.

To identify an entry to be changed, there must be an exact match in the entry for the value that is specified in the entry ID parameter and the length of the entry ID. For example, an entry ID value of SMITH with a length of 5 would not allow you to change an entry where the entry ID is SMITH and the length is 7.

Conversions are not done on any data when entries are changed. The CCSID values for the fields are stored as part of the record but are not used when the entry is changed.


Authorities and Locks

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

Required Parameter Group

Qualified validation list name
INPUT; CHAR(20)

The qualified object name of the validation list that contains the entry to change. 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(*)

The data 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(*)

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.





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 value is:



Attribute location. Where the attribute should be stored.

The allowed value is:


Attribute structures. Zero or more attribute structures that define the attributes 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 0 through 65535. This field is not used to change the entry.

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 or equal to 0. If a length of 0 is specified, the attribute is removed from the entry. For the QsyEncryptData attribute, the maximum length is 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 -1 through 600. If the length is 0, any encrypted data that is associated with the entry ID will be removed. If the length is -1, the encrypted data that is associated with the entry ID is not changed.

Length of data. The number of bytes of data to be stored in this validation list entry. Possible values are -1 through 1000. If the length is 0, any data that is associated with the entry ID will be removed. If the length is -1, the data that is associated with the entry ID is not changed.

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 changed in the entry.

Reserved. This is an ignored field.


Error Messages



API introduced: V4R2

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