List PTF Groups (QpzListPtfGroups) API


  Required Parameter Group:


  Service Program Name: QPZGROUP

  Default Public Authority: *USE

  Threadsafe: No

The List PTF Groups (QpzListPtfGroups) API returns a list of all levels of all PTF groups that are known to the system. You can then use the QpzListPtfGroupDetails API to return detailed information for a specific PTF group.


Authorities and Locks

Work with PTF Groups (WRKPTFGRP) command
*USE

User Space Authority
*CHANGE

User Space Library Authority
*EXECUTE

User Space Lock
*EXCLRD

Lock conflicts may occur if this API is called while another PTF or PTF group operation is in progress.


Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that is to receive the generated list. The first 10 characters contain the user space name. The second 10 characters contain the name of the library where the user space is located. You can use these special values for the library name:


Format name
INPUT; CHAR(8)

The content and format of the information that is returned. The possible format names are:


CCSID
INPUT; BINARY(4)

The coded character set ID in which to return the PTF group names and descriptions. Valid values are 0 through 65533. If a value of 0 is specified, the names and descriptions will be returned in the CCSID of the job.

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 the Generated Lists

The user space will contain:

For details about the user area and generic header, see User spaces. For details about the remaining items, see the following sections. For detailed descriptions of the fields in the generated list returned, see Field Descriptions.

When you retrieve the list entry information from a user space, you must use the entry size returned in the generic header. The size of each entry may be padded at the end. If you do not use the entry size, the result may not be valid. For examples of how to process lists, see Examples: APIs and exit programs.


Input Parameter Section



Header Section



LSTG0100 Format List Section

The following information is repeated for each PTF group.



Field Descriptions

CCSID. The coded character set ID of the returned PTF group names and descriptions that was requested.

Format name. The format of the returned information that was requested.

PTF group description. The text description of the PTF group.

PTF group level. The current level of the PTF group.

PTF group name. The name of the PTF group.

PTF group status. The overall status of the PTF group on this system. The status is determined using the status of all PTFs defined in the PTF group, as well as all PTFs defined in all related PTF groups. The level of the related PTF groups used to resolve the status of the PTF group is the highest level of the related PTF group that has a status of Installed or Apply at next IPL. If no levels of the related PTF group have a status of Installed or Apply at next IPL, the highest level of the related PTF group that exists on the system will be used. The following values are valid:

Target release. The release of the operating system on which the PTF group is to be used. PTF groups that have a target release lower than the currently installed operating system release and also do not contain any PTFs for installed or supported products are automatically deleted by the system. When this PTF group is not associated with an operating system release, this field will contain blanks.

User space library name specified. The name specified for the library that contains the user space to receive the generated list.

User space library name used. The actual name of the library that is used to contain the user space that received the list.

User space name specified. The name specified for the user space that is to receive the generated list.

User space name used. The actual name of the user space that received the list.


Error Messages



API introduced: V5R2

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