ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/qpmopenmgtcol.htm

232 lines
6.4 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Open Management Collection Object (QpmOpenMgtcol) API</title>
<!-- Begin Header Records -->
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<!-- Created for V5R2 -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!-- File cleanup completed Feb 2002 by v2cdijab -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>Open Management Collection
Object (QpmOpenMgtcol) API</h2>
<div class="box" style="width: 70%;">
<br>
&nbsp;&nbsp;Required Parameter Group:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">1</td>
<td align="left" valign="top" width="50%">Qualified object name</td>
<td align="left" valign="top" width="20%">Input</td>
<td align="left" valign="top" width="20%">Char(20)</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">Management collection object handle</td>
<td align="left" valign="top">Output</td>
<td align="left" valign="top">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">3</td>
<td align="left" valign="top">Error code</td>
<td align="left" valign="top">I/O</td>
<td align="left" valign="top">Char(*)</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Service Program Name: QPMAAPI<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *EXCLUDE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: Yes<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The Open Management Collection Object (QpmOpenMgtcol) API opens a specified
management collection object for processing and returns a handle to the open
management collection object. This handle uniquely identifies the open
management collection object and is used by the following APIs:</p>
<ul>
<li><a href="qpmclosemgtcol.htm">Close Management Collection Object
(QpmCloseMgtcol) API</a></li>
<li><a href="qpmopenmgtcolrepo.htm">Open Management Collection Object
Repository (QpmOpenMgtcolRepo) API</a></li>
</ul>
<p>The management collection object handle is valid until the management
collection object is closed by the Close Management Collection Object
(QpmCloseMgtcol) API. The handle is scoped to a job so that a management
collection object opened in one thread can be used by another thread provided
the handle is known.</p>
<br>
<h3>Authorities and Locks</h3>
<dl>
<dt><em>API Public Authority</em></dt>
<dd>*EXCLUDE</dd>
<dt><em>Authority to library containing collection object</em></dt>
<dd>*EXECUTE</dd>
</dl>
<p>If the open operation was successful, a *SHRRD lock is placed on the
management collection object.</p>
<br>
<h3>Required Parameter Group</h3>
<dl>
<dt><strong>Qualified object name</strong></dt>
<dd>INPUT; CHAR(20)
<p>Name of a management collection object and the library in which it is
located. The first 10 characters contain the object name and the second 10
characters contain the library name.</p>
<p>The system supports management collection objects with different attributes;
they contain different information. The Management Collection Object APIs
support only collection objects which are created by the Collection Services
collector. These collection objects have the attribute *PFR.</p>
</dd>
<dt><strong>Management collection object handle</strong></dt>
<dd>OUTPUT; BINARY(4)
<p>A handle to the open management collection object. This handle is used by
the Close Management Collection Object (QpmCloseMgtcol) API and the Open
Management Collection Object Repository (QpmOpenMgtcolRepo) API to uniquely
identify the open management collection object.</p>
</dd>
<dt><strong>Error code</strong></dt>
<dd>I/O; CHAR(*)
<p>The structure in which to return error information. For the format of the
structure, see <a href="../apiref/error.htm#hdrerrcod">Error code parameter</a>.</p>
</dd>
</dl>
<br>
<h3>Error Messages</h3>
<table width="100%" cellpadding="5">
<!-- cols="15 85" -->
<tr>
<th align="left" valign="top" nowrap>Message ID</th>
<th align="left" valign="top">Error Message Text</th>
</tr>
<tr>
<td align="left" valign="top">CPF0A2B E</td>
<td align="left" valign="top">Not able to process management collection object
&amp;1 in library &amp;2.</td>
</tr>
<tr>
<td align="left" valign="top">CPF0AA4 E</td>
<td align="left" valign="top">Lock request was not satisfied in a specified
time.</td>
</tr>
<tr>
<td align="left" valign="top">CPF2105 E</td>
<td align="left" valign="top">Object &amp;1 in &amp;2 type *&amp;3 not
found.</td>
</tr>
<tr>
<td align="left" valign="top">CPF2110 E</td>
<td align="left" valign="top">Library &amp;1 not found.</td>
</tr>
<tr>
<td align="left" valign="top">CPF2114 E</td>
<td align="left" valign="top">Cannot allocate object &amp;1 in &amp;2 type
*&amp;3.</td>
</tr>
<tr>
<td align="left" valign="top">CPF2207 E</td>
<td align="left" valign="top">Not authorized to use object &amp;1 in library
&amp;3 type *&amp;2.</td>
</tr>
<tr>
<td align="left" valign="top">CPF24B4 E</td>
<td align="left" valign="top">Severe error while addressing parameter
list.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF1 E</td>
<td align="left" valign="top">Error code parameter not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF2 E</td>
<td align="left" valign="top">Error(s) occurred during running of &amp;1
API.</td>
</tr>
<tr>
<td align="left" valign="top">CPF9810 E</td>
<td align="left" valign="top">Library &amp;1 not found.</td>
</tr>
</table>
<br>
<hr>
API introduced: V5R2
<hr>
<table align="center" cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center">
<a href="#Top_Of_Page">Top</a> |
<a href="perfmgmt.htm">Performance Management APIs</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</body>
</html>