437 lines
16 KiB
HTML
437 lines
16 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Move Media using BRM (MOVMEDBRM)</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="MOVMEDBRM.Top_Of_Page"></a>
|
|
<h2>Move Media using BRM (MOVMEDBRM)</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="#MOVMEDBRM.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#MOVMEDBRM.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#MOVMEDBRM.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="MOVMEDBRM"></a>
|
|
<p>The Move Media using BRM (MOVMEDBRM) command moves media based on BRMS move policies. Media that is moved as a result of processing this command must meet not only the move policy requirements (for example, allowable move day) but also the criteria specified in the command for location, media class, system name and so on.
|
|
</p>
|
|
<p>The MOVMEDBRM command can be a job in the system scheduler that can run automatically or you can submit the command manually.
|
|
</p>
|
|
<p>The output produced when you run the MOVMEDBRM command is either the Volume Movement report written to printer file QP1AVMS or the moved media records written to the output file.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>If you have a network of systems using BRMS, it is only necessary to process the MOVMEDBRM command on one of the members of the network, although the process can be done an a system by system basis.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>The system in the network that is running the movement for all of the other systems in the network should be physically attached to all media libraries that support the network operations. If this is not the case, you may have to run MOVMEDBRM again, specifying the appropriate move policy for the logically attached media library device.
|
|
</p>
|
|
<p>To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
|
|
</p>
|
|
<p><b>Restriction: </b>
|
|
</p>
|
|
<ul>
|
|
<li>When using special value *OUTFILE for the <b>Output (OUTPUT)</b> parameter, refer to section General Rules for Object Authorities on Commands in Appendix D of the iSeries Security Reference book for the authorities required for the output file and output file library.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="MOVMEDBRM.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"><a href="#MOVMEDBRM.MOVPCY"><b>MOVPCY</b></a></td>
|
|
<td valign="top">Move policy</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.LOC"><b>LOC</b></a></td>
|
|
<td valign="top">From location</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b>, *HOME</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.CNR"><b>CNR</b></a></td>
|
|
<td valign="top">Container</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.MEDCLS"><b>MEDCLS</b></a></td>
|
|
<td valign="top">Media class</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.SYSNAME"><b>SYSNAME</b></a></td>
|
|
<td valign="top">System name</td>
|
|
<td valign="top"><i>Character value</i>, <b><u>*ALL</u></b>, *LCL</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.FILEGRP"><b>FILEGRP</b></a></td>
|
|
<td valign="top">File group</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b>, *NONE, *ARCGRP, *BKUGRP, *SYSGRP, *SYSTEM</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.GRPTYPE"><b>GRPTYPE</b></a></td>
|
|
<td valign="top">File group type</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b>, *ARC, *BKU, *NONE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#MOVMEDBRM.OUTPUT"><b>OUTPUT</b></a></td>
|
|
<td valign="top">Output</td>
|
|
<td valign="top"><b><u>*PRINT</u></b>, *OUTFILE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#MOVMEDBRM.OUTFILE"><b>OUTFILE</b></a></td>
|
|
<td valign="top">File to receive output</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: File to receive output</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, *LIBL, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top" rowspan="3"><a href="#MOVMEDBRM.OUTMBR"><b>OUTMBR</b></a></td>
|
|
<td valign="top">Output member options</td>
|
|
<td valign="top"><i>Element list</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 1: Member to receive output</td>
|
|
<td valign="top">
|
|
<i>Name</i>, <b><u>*FIRST</u></b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 2: Replace or add records</td>
|
|
<td valign="top">
|
|
<b><u>*REPLACE</u></b>, *ADD</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="MOVMEDBRM.MOVPCY"></a>
|
|
<h3>Move policy (MOVPCY)</h3>
|
|
<p>Specifies the user-defined name of a move policy that you want to use to select volumes.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>All media that has a move policy are selected.
|
|
</dd>
|
|
<dt><b><i>move-policy-name</i></b></dt>
|
|
<dd>Specify the user-defined name of the move policy that you are using to select media volumes.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.LOC"></a>
|
|
<h3>From location (LOC)</h3>
|
|
<p>Specifies the location of the media that you want to use when selecting volumes to be moved.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>Select media volumes that reside in any storage location.
|
|
</dd>
|
|
<dt><b>*HOME</b></dt>
|
|
<dd>Select volumes that reside in the home location.
|
|
</dd>
|
|
<dt><b><i>from-location-name</i></b></dt>
|
|
<dd>Specify the name of the media storage location.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.CNR"></a>
|
|
<h3>Container (CNR)</h3>
|
|
<p>Specifies the container that you want to select for media movement. You can specify a container or all containers.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>Select all media for media movement that is currently in a container.
|
|
</dd>
|
|
<dt><b><i>container-ID</i></b></dt>
|
|
<dd>Specify the name of the container that you want to select for media movement.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.MEDCLS"></a>
|
|
<h3>Media class (MEDCLS)</h3>
|
|
<p>Specifies the media class that you want to select for media movement. You can select a specific media class or all media classes.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>Select all media regardless of the media class.
|
|
</dd>
|
|
<dt><b><i>media-class-name</i></b></dt>
|
|
<dd>Specify the name of the media class that you want to use to select volumes for media movement.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.SYSNAME"></a>
|
|
<h3>System name (SYSNAME)</h3>
|
|
<p>Specifies the system name whose media inventory you want to consider for media movement.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>Include all media on all systems in the media selected for media movement.
|
|
</dd>
|
|
<dt><b>*LCL</b></dt>
|
|
<dd>Specifies that the system is the local system. BRMS uses the default local location name, LCLLOCNAME and not the system name SYSNAME. In most cases, the systems have the same value specified in the LCLLOCNAME and in the SYSNAME. You can use the DSPNETA command to view the system network attributes.
|
|
</dd>
|
|
<dt><b><i>location-name</i></b></dt>
|
|
<dd>Specify the name of the remote location associated with the system. The local system's network identifier, as seen by using the DSPNETA command, is used as the system's network identifier.
|
|
<p>
|
|
<b>Note: </b>The BRMS Network feature (Option 1) is required to use this value.
|
|
</p>
|
|
</dd>
|
|
<dt><b><i>network-id.location-name</i></b></dt>
|
|
<dd>Specify the network identifier and the name of the remote location associated with the system. Specify these values using the format nnnnnnnn.cccccccc where nnnnnnnn is the network identifier and cccccccc is the remote location name.
|
|
<p>
|
|
<b>Note: </b>The BRMS Network feature (Option 1) is required to use this value.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.FILEGRP"></a>
|
|
<h3>File group (FILEGRP)</h3>
|
|
<p>Specifies the file group that you want to use when selecting volumes that you want to move.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>Include all file groups when selecting the media that you want to move.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>Do not include media in file groups.
|
|
</dd>
|
|
<dt><b>*ARCGRP</b></dt>
|
|
<dd>Include media that contain the default archive control group in the group of files.
|
|
<p>
|
|
<b>Note: </b>The BRMS Advanced feature (Option 2) is required to use this value.
|
|
</p>
|
|
</dd>
|
|
<dt><b>*BKUGRP</b></dt>
|
|
<dd>Include media that contain the default backup user data control group in the group of files.
|
|
</dd>
|
|
<dt><b>*SYSGRP</b></dt>
|
|
<dd>Include media that contain the default system data control group in the group of files.
|
|
</dd>
|
|
<dt><b>*SYSTEM</b></dt>
|
|
<dd>Include media that contain the default backup entire system control group in the group of files.
|
|
</dd>
|
|
<dt><b><i>file-group</i></b></dt>
|
|
<dd>Specify the name of the file group whose media you want to select for movement.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.GRPTYPE"></a>
|
|
<h3>File group type (GRPTYPE)</h3>
|
|
<p>Specifies the type of file group that you want to select for movement.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>Include all types of file groups that meet the other specifications in the search.
|
|
</dd>
|
|
<dt><b>*ARC</b></dt>
|
|
<dd>Include file groups that are archive type file groups in the media that you want to move.
|
|
<p>
|
|
<b>Note: </b>*ARC is not a special value, but rather indicates that this is an archive file group type.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>The BRMS Advanced feature (Option 2) is required to use this value.
|
|
</p>
|
|
</dd>
|
|
<dt><b>*BKU</b></dt>
|
|
<dd>Include file groups that are backup type file groups in the media that you want to move.
|
|
<p>
|
|
<b>Note: </b>*BKU is not a special value, but rather indicates that this is a backup file group type.
|
|
</p>
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>Do not include any file group types in the media that you want to move.
|
|
</dd>
|
|
<dt><b><i>file-group-type</i></b></dt>
|
|
<dd>Specify the file group type that you want to include in the file groups that you want to move. An example file group type is QBRMBKUP which indicates that it is a backup control group file group type.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.OUTPUT"></a>
|
|
<h3>Output (OUTPUT)</h3>
|
|
<p>Specifies whether the output is to be printed with the job's spooled output or directed to a database file.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*PRINT </u></b></dt>
|
|
<dd>The output is printed with the job's spooled output.
|
|
</dd>
|
|
<dt><b>*OUTFILE</b></dt>
|
|
<dd>The output is directed to the database file specified on the <b>File to receive output (OUTFILE)</b> parameter.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.OUTFILE"></a>
|
|
<h3>File to receive output (OUTFILE)</h3>
|
|
<p>Specifies the qualified name of the database file receiving the output when *OUTFILE is specified on the <b>Output (OUTPUT)</b> parameter. If the file does not exist, this command creates a database file in the specified library. New files are created using database file QO1AVMS in library QBRM with the format name QBRMMOVMED as the model.
|
|
</p>
|
|
<p><b>Qualifier 1: File to receive output </b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>database-file-name</i></b></dt>
|
|
<dd>Specifies the name of the database file receiving the output from the command. If this file does not exist, it is created in the specified library.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library </b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL </u></b></dt>
|
|
<dd>All libraries in the job's library list are searched until the first match is found.
|
|
</dd>
|
|
<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 for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>library-name</i></b></dt>
|
|
<dd>The specified library is used to locate the file.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="MOVMEDBRM.OUTMBR"></a>
|
|
<h3>Output member options (OUTMBR)</h3>
|
|
<p>Specifies the name of the database file member receiving the output of the command when *OUTFILE is specified for the <b>Output (OUTPUT)</b> parameter.
|
|
</p>
|
|
<p><b>Element 1: Member to receive output </b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*FIRST </u></b></dt>
|
|
<dd>The first member in the file receives the output. If OUTMBR(*FIRST) is specified and the member does not exist, the member is created with the name of the file specified on the <b>File to receive output (OUTFILE)</b> parameter and the record options.
|
|
</dd>
|
|
<dt><b><i>member-name</i></b></dt>
|
|
<dd>Specifies the file member that receives the output. If OUTMBR(member-name) is specified and the member does not exist, the member is created.
|
|
<p>If the member exists, the user can add records to the end of the existing member or clear the existing member and add the records.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 2: Replace or add records </b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*REPLACE </u></b></dt>
|
|
<dd>The existing records in the specified database file member are replaced by the new records.
|
|
</dd>
|
|
<dt><b>*ADD</b></dt>
|
|
<dd>The new records are added to the existing information in the specified database file member.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="MOVMEDBRM.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Selecting All Volumes to Move for Location *HOME</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
MOVMEDBRM LOC(*HOME)
|
|
</pre>
|
|
</p>
|
|
<p>This command selects all volumes for all move policies that are located at the location *HOME for media movement. A summary of the movement activity is printed as file QP1AVMS.
|
|
</p>
|
|
<p><b>Example 2: Selecting All Volumes to Move for Location *HOME</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
MOVMEDBRM LOC(*HOME) OUTPUT(*OUTFILE) OUTFILE(MYLIB/MOVEMENT)
|
|
</pre>
|
|
</p>
|
|
<p>This command selects all volumes for all move policies that are located at the location *HOME for media movement. A summary of the movement activity is placed in the first member in data base file MOVEMENT in library MYLIB.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="MOVMEDBRM.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>BRM1917</b></dt>
|
|
<dd>Feature not installed.
|
|
</dd>
|
|
<dt><b>BRM1921</b></dt>
|
|
<dd>Feature not licensed.
|
|
</dd>
|
|
<dt><b>BRM4040</b></dt>
|
|
<dd>Access denied for user &1.
|
|
</dd>
|
|
<dt><b>BRM4041</b></dt>
|
|
<dd>Access denied for user &1.
|
|
</dd>
|
|
<dt><b>BRM40A2</b></dt>
|
|
<dd>BRMS product initialization required.
|
|
</dd>
|
|
<dt><b>BRM6708</b></dt>
|
|
<dd>Command ended due to error.
|
|
</dd>
|
|
<dt><b>CPF9800</b></dt>
|
|
<dd>All CPF98xx messages could be signaled. xx is from 01 to FF.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#MOVMEDBRM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|