ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chgnodgrpa.htm

219 lines
8.8 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">
<title>Change Node Group Attributes (CHGNODGRPA)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CHGNODGRPA.Top_Of_Page"></a>
<h2>Change Node Group Attributes (CHGNODGRPA)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CHGNODGRPA.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGNODGRPA.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGNODGRPA.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGNODGRPA"></a>
<p>The Change Node Group Attributes (CHGNODGRPA) command changes the data partitioning attributes for a node group. The node group contains a table with 1024 partitions. Each partition contains a node number. Node numbers were assigned when the node group was created and correspond to the relational databases specified on the RDB parameter of the CRTNODGRP (Create Node Group) command. You can use the DSPNODGRP (Display Node Group) command to see the valid node number values and correspondence between node numbers and relational database names.
</p>
<p>This command does not affect existing distributed files that were created using the specified node group. Distributed files created after the node group is changed will use the changed partitioning attributes.
</p>
<ul>
<li>You can create a database file as a distributed file by specifying values for the NODGRP and PTNKEY parameters on the CRTPF (Create Physical File) command.
</li>
<li>For an existing database physical file that is not a distributed file, you can make the file distributed by specifying values for the NODGRP and PTNKEY parameters on the CHGPF (Change Physical File) command.
</li>
<li>For an existing distributed database file, you can change the data partitioning attributes by specifying values for the NODGRP and PTNKEY parameters on the CHGPF (Change Physical File) command. This will cause the data to be redistributed according to the partitioning table in the node group.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGNODGRPA.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CHGNODGRPA.NODGRP"><b>NODGRP</b></a></td>
<td valign="top">Node group</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Node group</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#CHGNODGRPA.PTNNBR"><b>PTNNBR</b></a></td>
<td valign="top">Partition number</td>
<td valign="top">0-1023</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#CHGNODGRPA.CMPDTA"><b>CMPDTA</b></a></td>
<td valign="top">Compare data</td>
<td valign="top">Values (up to 300 repetitions): <i>Character value</i></td>
<td valign="top">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#CHGNODGRPA.NODNBR"><b>NODNBR</b></a></td>
<td valign="top">Node number</td>
<td valign="top">1-32</td>
<td valign="top">Optional, Positional 4</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGNODGRPA.NODGRP"></a>
<h3>Node group (NODGRP)</h3>
<p>Specifies the node group whose attributes are to be changed.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Node group</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the node group being changed.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGNODGRPA.PTNNBR"></a>
<h3>Partition number (PTNNBR)</h3>
<p>Specifies a partition number to change.
</p>
<dl>
<dt><b><i>0-1023:</i></b></dt>
<dd>Specify the partition number to be changed.
<p>
<b>Note: </b>Either PTNNBR or CMPDTA must be specified. PTNNBR should be used when you know which partition you want to change. You can use the %PARTITION built-in function on the OPNQRYF (Open Query File) command to obtain this information. Other useful built-in OPNQRYF functions for distributed files and data partitioning are %HASH, %NODENUMBER, and %NODENAME.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGNODGRPA.CMPDTA"></a>
<h3>Compare data (CMPDTA)</h3>
<p>Specifies a value that is used to determine the partition number to change. The specified value is used as input to a hashing algorithm that determines which partition to change.
</p>
<dl>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the data to be used to determine the partition to be changed. Multiple values can be entered to correspond to a partitioning key with multiple columns (fields). Character data should be entered without leading or trailing blanks. Numeric data should be entered using the character representation, without leading or trailing zeroes, and without decimal points or commas. For example, the number 3.5 should be entered as 35. Up to 300 values can be specified.
<p>
<b>Note: </b>Either PTNNBR or CMPDTA must be specified. CMPDTA should be used when you want to direct records (or rows) for a distributed file to a particular node whenever the partitioning key contains the specified value.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGNODGRPA.NODNBR"></a>
<h3>Node number (NODNBR)</h3>
<p>Specifies the new node number to be associated with the partition being changed.
</p>
<dl>
<dt><b><i>1-32</i></b></dt>
<dd>Specify a valid node number for the node group. You can use the Display Node Group (DSPNODGRP) command to view the valid node numbers for a node group.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGNODGRPA.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Specify a Partition Number</b>
</p>
<p>
<pre>
CHGNODGRPA NODGRP(LIB1/GROUP1) PTNNBR(1019) NODNBR(2)
</pre>
</p>
<p>This command changes the partitioning attributes of the node group named GROUP1 in library LIB1. Partition 1019 is changed to refer to node number 2. Node number 2 corresponds to the second relational database specified when the node group was created (RDB parameter on the CRTNODGRP command).
</p>
<p><b>Example 2: Specify a Comparison Value</b>
</p>
<p>
<pre>
CHGNODGRPA NODGRP(GROUP2) CMPDTA('CHICAGO') NODNBR(3)
</pre>
</p>
<p>This command changes the partitioning attributes of the node group named GROUP2 (GROUP2 is found by using the library search list *LIBL). The value specified on the CMPDTA parameter is hashed, and the resulting partition number is changed from its existing node number to node number 3.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGNODGRPA.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF3166</b></dt>
<dd>Node group &amp;1 in library &amp;2 not found.
</dd>
<dt><b>CPF3167</b></dt>
<dd>Node group &amp;1 in library &amp;2 was not changed.
</dd>
<dt><b>CPF2189</b></dt>
<dd>Not authorized to object &amp;1 in &amp;2 type *&amp;3.
</dd>
<dt><b>CPF9801</b></dt>
<dd>Object &amp;2 in library &amp;3 not found.
</dd>
<dt><b>CPF9810</b></dt>
<dd>Library &amp;1 not found.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNODGRPA.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>