SOFTWARE_PRODUCT_INFO view
The SOFTWARE_PRODUCT_INFO view returns information about software products.
The values returned for the columns in the view are closely related to the values returned by the Display Software Resources (DSPSFWRSC) command and the Retrieve Product Information (QSZRTVPR) API.
Authorization: None required.
The following table describes the columns in the view. The system name is SFW_PROD. The schema is QSYS2.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
PRODUCT_ID | PRODUCT_ID | VARCHAR(7) | The product ID. |
PRODUCT_OPTION | PROD_OPT | VARCHAR(5) | The product option of the product. Can contain the following
special value:
|
LOAD_ID | LOAD_ID | VARCHAR(4) | The load ID of the product load for which information was returned. |
LOAD_TYPE | LOAD_TYPE | VARCHAR(8) | The type of load.
|
RELEASE_LEVEL | RELEASE | VARCHAR(10) | The release level of the product selected. |
INSTALLED | INSTALLED | VARCHAR(3) | Whether the code load for this product option is installed. A load
is installed if a product load (*PRDLOD) object is loaded on the system by the Restore Licensed
Program (RSTLICPGM) command.
|
SYMBOLIC_LOAD_STATE | SYM_STATE | VARCHAR(9) | The symbolic state of the load for which information was returned.
This value, in conjunction with the LOAD_ERROR column, can be used to determine if the load is
installed correctly.
|
LOAD_ERROR | LOAD_ERROR | VARCHAR(3) | Whether there is a known error for this load.
|
LOAD_STATE | LOAD_STATE | CHAR(2) | The state of the load for which information was returned.
|
LOAD_STATE (continued) |
|
||
SUPPORTED | SUPPORTED | VARCHAR(3) | Whether this load is currently supported.
|
COMPATIBLE | COMPATIBLE | VARCHAR(3) Nullable
|
Indicates whether this IBM product is compatible with the current release.
Contains the null value if this product does not have a compatibility value. |
PRODUCT_LIBRARY_COUNT | LIB_COUNT | INTEGER | The number of product libraries included in the PRODUCT_LIBRARIES column. |
PRODUCT_LIBRARIES | PROD_LIB | VARCHAR(120) Nullable
|
The list of product load libraries. Each library name entry is ten
characters long with one blank separating entries. Contains the null value if PRODUCT_LIBRARY_COUNT is 0. |
PRODUCT_DIRECTORY_COUNT | DIR_COUNT | INTEGER | The number of product directories included in the PRODUCT_DIRECTORIES column. |
PRODUCT_DIRECTORIES | PROD_DIR | DBCLOB(5M) CCSID 1200 Nullable
|
The list of product directories. Directory entries are separated by
the string ' -- ' (a blank, two minus signs, and a blank). Contains the null value if PRODUCT_DIRECTORY_COUNT is 0. |
TEXT_DESCRIPTION | TEXT | VARCHAR(132) Nullable
|
Text description for this product option. Contains the null value if there is no text description or the text description is not available. |
PRIMARY_LANGUAGE_LOAD_ID | LANG_ID | CHAR(4) Nullable
|
For code loads, this field contains the primary language of the
product option. Contains the null value for language loads and for code loads when no language is installed in the libraries for the code load. |
RELEASE_DATE | REL_DATE | DATE Nullable
|
Indicates the value specified for the release date when the product
definition for this product load was created. Contains the null value if no release date was specified. |
MINIMUM_TARGET_RELEASE | MIN_TGTRLS | CHAR(6) | The minimum release of the operating system to which the Save Licensed Program (SAVLICPGM) command will allow the product to be saved. |
MINIMUM_VRM_BASE | MIN_BASE | CHAR(6) Nullable
|
The minimum release level that is allowed for the *BASE option that
will run with the current level of the option for the product. Can containing the following special value:
Contains the null value for Licensed Internal Code. |
REQUIREMENTS_MET | REQ_MET | INTEGER | The reason why the release requirements between the base and option
may or may not be in error.
|
MIXED_RELEASES | MIXED_REL | VARCHAR(3) | Product allows mixed releases.
|
LEVEL_ID | LEVEL_ID | CHAR(3) Nullable
|
The level identifier of the product for which information was
returned. The format is Lxx. Contains the null value for all products other than the operating system and Licensed Internal Code. |
REGISTRATION_TYPE | REG_TYPE | CHAR(2) | The registration type associated with the product. The registration type and registration value together make up the registration ID for the product. |
REGISTRATION_VALUE | REG_VALUE | VARCHAR(14) | The registration value associated with the product. |
Example
- List any licensed programs that are in an error state.
SELECT * FROM QSYS2.SOFTWARE_PRODUCT_INFO WHERE LOAD_ERROR = 'YES';