Start of changeMap Release (QSZMPRLS) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Map Release (QSZMPRLS) API will map a Version/Release/Modification (VRM) value from one of three input formats to three distinct formats used to support IBM i Licensed Programs. This API will also sort, in ascending order, two or more VRM values of potentially different formats.


Authorities and Locks

Public API Authority
None

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable to receive the requested information. This information will be the mapped or sorted release values based on the input values. The output values are determined by the format name.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable in bytes. The length of receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable. The minimum length is 8 bytes.

Format
INPUT; CHAR(8)

The content and format for the information returned.

The possible format names are:


Release information
INPUT; CHAR(*)

The VRM value to map to the supported formats or the list of VRM values to sort in ascending order. For more information, see Release Information Format.


Error code
I/O; CHAR(*)

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


Release Information Format

Information passed in the input release information parameter must be in the following format. For detailed descriptions of each field, see Field Descriptions.



Receiver Variable Format

MVRM0100 Format

The following describes the format of the mapped release information returned in the receiver variable parameter. For detailed descriptions of the fields in the table, see Field Descriptions.



MVRM0200 Format

The following describes the format of the sorted release information returned in the receiver variable parameter. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes returned to the user. This is the lesser of the number of bytes available and the length of the receiver variable.

Displayable release. The VRM value in a displayable format. This represents the VRM value as it would appear on a useable interface. The value will be in the format VxxRyyMz where xx is any numeric character 0 through 35, yy is any numeric character 0 through 35, and z is any numeric character 0 through 9 or uppercase letter A through Z. For example, V10R12MX is version 10, release 12, modification X. Leading zeros are left out.

Length of displayable release entry. The length of each displayable release entry.

Length of six-character entry. The length of each six-character release entry.

Length of three-character release entry. The length of each three-character release entry.

Number of displayable release entries. The number of displayable release entries.

Number of entries. The number of release entries passed in the Release information parameter.

Number of six-character release entries. The number of six-character release entries.

Number of three-character release entries. The number of three-character release entries.

Offset to displayable release entries. The offset from the beginning of the receiver variable to the start of the list of displayable release entries.

Offset to six-character release entries. The offset from the beginning of the receiver variable to the start of the list of six-character release entries.

Offset to three-character release entries. The offset from the beginning of the receiver variable to the start of the list of three-character release entries.

Release. The (release) VRM value. This value is required.

Release format. The format for the release field. The possible values are:

Six-character release. The value is a six character representation of the release of the product with no 'V'. 'R', or 'M' characters. The first two characters represent the Version of the product, and valid values range from 00 to 35. The second two characters represent the Release of the product, and valid values range from 00 to 35. The third two characters represent the Modification of the product, and valid values range from 00 to 09, and 0A through 0Z. Values 0A through 0Z are not mapped and are interpreted as alphabetic values.

Three-character release. The value is a three character representation of the release of the product. The first character represents the Version of the product, and valid values range from 0 to 9, and A through Z. Values A through Z are mapped to numeric values 10 (A) through 35 (Z). The second character represents the Release of the product, and valid values range from 0 to 9, and A through Z. Values A through Z are mapped to numeric values 10 (A) through 35 (Z). The third character represents the Modification of the product, and valid values range from 0 to 9, and A through Z. Values A through Z are not mapped and are interpreted as alphabetic values.


Error Messages

End of change

API introduced: IBM® i 7.2

[ Back to top | Software Product APIs | APIs by category ]