Start of changeRetrieve Workload Groups Information (QLZRTVWC) API


  Required Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Retrieve Workload Groups Information (QLZRTVWC) API retrieves information for the specified workload group. This information includes the configured processor core limit for the workload group and the licensed programs (software products) associated with the workload group.

The API can also be used to retrieve a list of all the workload groups defined on the partition.

The QSYS2.WORKLOAD_GROUP_INFO view can be used as an alternative to this API. See WORKLOAD_GROUP_INFO view for more information.



Authorities and Locks

Public API Authority
*EXCLUDE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable to receive the requested information. The structure of this information is determined by the workload groups information 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.

Workload groups information format name
INPUT; CHAR(8)

The name of the format that describes the workload groups information to be retrieved.

The supported formats are:


Workload group query value
INPUT; CHAR(*)

The value identifying the workload group to retrieve information about. The structure of this information is determined by the workload group query value format name. This value can represent one of the following:

  • The product information for a given licensed program
  • A fully qualified product directory path name packaged with a licensed program
  • A specific workload group name

Product identification format name
INPUT; CHAR(8)

The name of the format that describes the workload groups query value.

The supported formats are:


Error code
I/O; CHAR(*)

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


WLCR0100 Format

The following information describes the workload groups information to be retrieved. The information includes the list of licensed programs associated with the workload group. For detailed descriptions of the fields, see Field Descriptions.



WLCR0200 Format

The following information describes the workload groups information to be retrieved. The information includes a list of all workload groups defined on the partition which match the query value. For detailed descriptions of the fields, see Field Descriptions.



WLCQ0100 Format

The following information describes the workload groups query value for a given licensed program. For detailed descriptions of the fields, see Field Descriptions.



WLCQ0200 Format

The following information describes the workload groups query value for a fully qualified product directory path name. For detailed descriptions of the fields, see Field Descriptions.



WLCQ0300 Format

The following information describes the workload groups query value for a specific workload group name. For detailed descriptions of the fields, 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 of data returned.

CCSID of product directory path name. The CCSID of the product directory path name for format WLCQ0200. A value of 0 indicates the name is in the job default CCSID.

Feature. The feature of the product. Valid values for the feature are 5001 through 9999.

Length of each product record. The length of each product record associated with the workload group.

Length of each workload group record. The length of each workload group record.

License term. The extent of time the authorized usage limit for a product lasts. The license term can cover an entire version or an entire release or an entire modification level of a given product.

Possible values are:

Number of products in workload group. The number of software products for a given workload group.

Number of workload groups. The number of workload groups on the partition.

Offset to workload group list. The offset from the beginning of the receiver variable to the start of the list of workload groups. This offset is 0 if there are no workload groups or if the size of the receiver variable is not large enough to hold any workload groups.

Offset to workload group product list. The offset from the beginning of the receiver variable to the start of the list of products for a given workload group. This offset is 0 if there are no products in this workload group or if the size of the receiver variable is not large enough to hold any product information.

Option. The four character product option for a given licensed product. Valid values for the option are 0000 through 0099. 0000 represents the *BASE option.

Product directory path name. The product directory path name. A path name has a maximum length of 1024 characters. If the given path name is not packaged with a licensed product, then no information will be returned.

Product directory path name length. The length of the product directory path name.

Product ID. The 7 character product ID of the product whose workload group information is to be retrieved.

Release level. The 6 character version, release, and modification level of the product whose workload group information was requested. The release level must be in the format VxRyMz. Valid values for x and y are 0 through 9. Valid values for z are 0 through 9 and A through Z.

Reserved. If this field is input, character fields must be set to blanks and binary fields must be set to hexadecimal zeros.

Workload group name. The name of a workload group.

The valid special value when using WLCQ0300 is:

Workload group maximum processor core limit. The maximum processor core capacity associated with the workload group.


Error Messages

End of change

API introduced: IBM® i 7.1

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