solution
The <solution> element defines or selects a solution. The elements that you include within the <solution> element depend on the command that you are specifying.
- If you are using the <solution> element within a <register> command, you must specify the following required elements:
- <name>
- <prodcode>
- <prodvrsn>
- <templates>
- If you using the <solution> element within a <deregister> or <export> command, you need to specify only the <prodcode> and <prodvrsn> child elements.
Parent element: <register>, <deregister>, <solutions>, or <list>
Child elements: <name> (0:1), <prodcode> (0:1), <prodvrsn> (0:1), <products> (0:1), <templates> (0:1), and <files> (0:1)
Attributes:
Name | Type | Required? | Default | Description |
---|---|---|---|---|
id | string | no | A 7-character attribute that defines the FMID. This value is required when registering a solution. | |
prodlist | string | no | Indicates whether the solution is included in reports or displays of all installed solutions. | |
replace | string | no | no | Indicates whether to replace existing solutions with the same product code and version when using the <register> command. Valid values are yes and no. If you specify yes when using the <register> command, the solution registered will replace any existing solution of the same prodcode/version |
Example:
The following example shows how to use the <solution> element to register a solution:
<solution id="ZRMDA10" prodlist="yes" replace="no">
<name>Recovery Management for DB2</name>
<prodcode>RMD</prodcode>
<prodvrsn>1010</prodvrsn>
<products>
<product refid="ZAFRA10" deploy="required" />
<product refid="ZACPA10" deploy="required" />
<product refid="ZARMA10" deploy="required" />
<product refid="ZALPA10" deploy="required" />
</products>
<templates>
<template type="display_config">
<dsn>LGC.AFD1010.XML</dsn>
<member>PRODOPTS</member>
</template>
<template type="display_deploy">
<dsn>LGC.AFD1010.XML</dsn>
<member>DPLYOPTS</member>
</template>
</templates>
</solution>
</register>
The following example shows how to use the <solution> element to deregister a product:
<solution products="yes">
<prodcode>RMD</prodcode>
<prodvrsn>1010</prodvrsn>
</solution>
</deregister>
Related topic