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

173 lines
5.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">
<title>Rename Member (RNMM)</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="RNMM.Top_Of_Page"></a>
<h2>Rename Member (RNMM)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>Conditional
</td>
<td valign="top" align="right">
<a href="#RNMM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#RNMM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#RNMM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="RNMM"></a>
<p>The Rename Member (RNMM) command changes the name of a specified file member. The member cannot be renamed while it is in use; other users can read and change records of other members in the file that contains the member being renamed. A member that is opened in the same job cannot be renamed.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>You must have object management (*OBJMGT) authority for the file that contains the member that is to be renamed, and have update (*UPDATE) and execute (*EXECUTE) authorities for the library in which the file is located.
</li>
<li>This command is conditionally threadsafe. In multithreaded jobs, this command is not threadsafe and fails for Distributed Data Management (DDM) files of type *SNA.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="RNMM.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="#RNMM.FILE"><b>FILE</b></a></td>
<td valign="top">Data base file</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: Data base file</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="#RNMM.MBR"><b>MBR</b></a></td>
<td valign="top">Member</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#RNMM.NEWMBR"><b>NEWMBR</b></a></td>
<td valign="top">New member</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 3</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="RNMM.FILE"></a>
<h3>Data base file (FILE)</h3>
<p>Specifies the database file (physical or logical) that contains the member to be renamed.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Data base file</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the database file.
</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 used to locate the file. If no library is specified as the current library, QGPL 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="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RNMM.MBR"></a>
<h3>Member (MBR)</h3>
<p>Specifies the physical or logical file member that is to be renamed.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the file member.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RNMM.NEWMBR"></a>
<h3>New member (NEWMBR)</h3>
<p>Specifies the new name to be given to the file member. The member remains in the same file. The new name must not be the same as the name specified on the <b>Member (MBR)</b> parameter. The new name must be unique in the file.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the new name of the file member.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RNMM.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
RNMM FILE(ELEMENT) MBR(LEAD) NEWMBR(GOLD)
</pre>
</p>
<p>This command renames member LEAD in file ELEMENT as GOLD. The library list (*LIBL) is used to find the file.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RNMM.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF3178</b></dt>
<dd>Member &amp;3 not renamed to &amp;4.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RNMM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>