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

530 lines
22 KiB
HTML
Raw Permalink 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>Move Spooled Files using BRM (MOVSPLFBRM)</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="MOVSPLFBRM.Top_Of_Page"></a>
<h2>Move Spooled Files using BRM (MOVSPLFBRM)</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="#MOVSPLFBRM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#MOVSPLFBRM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#MOVSPLFBRM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="MOVSPLFBRM"></a>
<p>The Move Spooled Files using BRM (MOVSPLFBRM) command provides for the movement of selected spooled files to a specified library-qualified output queue. Selection criteria includes library-qualified from output queue name, from auxiliary storage pool, spooled file, job name, job user, job number, user data, create date range, last used date range, and size range. A run option of *REPORT is provided to allow the user to review the "Move Spooled Files using BRM" report prior to moving the selected spooled files. The report, if printed, is written to printer file QP1AMSF.
</p>
<p>Using the output queues' spooled file auxiliary storage pool attribute, BRMS determines whether spooled files will actually move from one auxiliary storage pool to another when moved from one output queue to another. If a spooled file that moves from one outq to another does not move from one auxiliary storage pool to another then BRMS does not check the auxiliary storage pool high storage threshold since the spooled file does not move. If a spooled file that moves from one outq to another also moves from one auxiliary storage pool to another, then before requesting the spooled file to move BRMS determines if the target auxiliary storage pool has sufficient space to accommodate the spooled file without exceeding the high storage threshold. If the spooled file cannot be moved without exceeding this threshold, BRMS will show that the file was not moved, and the file will be included in the summary section detail which indicates the number of files and amount of spooled data that could not be moved.
</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>The BRMS Advanced feature (Option 2) is required to use this command.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="MOVSPLFBRM.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="#MOVSPLFBRM.OPTION"><b>OPTION</b></a></td>
<td valign="top">Option</td>
<td valign="top"><b><u>*REPORT</u></b>, *MOVE</td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#MOVSPLFBRM.TOOUTQ"><b>TOOUTQ</b></a></td>
<td valign="top">To output queue</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top">Qualifier 1: To output queue</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" rowspan="3"><a href="#MOVSPLFBRM.FROMOUTQ"><b>FROMOUTQ</b></a></td>
<td valign="top">From output queue</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top">Qualifier 1: From output queue</td>
<td valign="top"><i>Generic name, name</i>, <b><u>*ALL</u></b></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b></td>
</tr><tr>
<td valign="top"><a href="#MOVSPLFBRM.FILE"><b>FILE</b></a></td>
<td valign="top">File</td>
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b></td>
<td valign="top">Optional, Positional 4</td>
</tr>
<tr>
<td valign="top"><a href="#MOVSPLFBRM.JOB"><b>JOB</b></a></td>
<td valign="top">Job name</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="#MOVSPLFBRM.USER"><b>USER</b></a></td>
<td valign="top">User</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="#MOVSPLFBRM.USRDTA"><b>USRDTA</b></a></td>
<td valign="top">User data</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="#MOVSPLFBRM.FROMASP"><b>FROMASP</b></a></td>
<td valign="top">From ASP</td>
<td valign="top"><i>Character value</i>, <b><u>*ALL</u></b>, *SYSTEM</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#MOVSPLFBRM.SLTCRTDATE"><b>SLTCRTDATE</b></a></td>
<td valign="top">Select create date</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: From date</td>
<td valign="top">
<i>Character value</i>, <b><u>*BEGIN</u></b>, *CURRENT</td>
</tr>
<tr>
<td valign="top">Element 2: To date</td>
<td valign="top">
<i>Character value</i>, <b><u>*END</u></b>, *CURRENT</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#MOVSPLFBRM.SLTUSEDATE"><b>SLTUSEDATE</b></a></td>
<td valign="top">Select last used date</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: From date</td>
<td valign="top">
<i>Character value</i>, <b><u>*BEGIN</u></b>, *CURRENT</td>
</tr>
<tr>
<td valign="top">Element 2: To date</td>
<td valign="top">
<i>Character value</i>, <b><u>*END</u></b>, *CURRENT</td>
</tr>
<tr>
<td valign="top" rowspan="4"><a href="#MOVSPLFBRM.SLTSIZE"><b>SLTSIZE</b></a></td>
<td valign="top">Select size</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Size type</td>
<td valign="top">
<b><u>*KB</u></b>, *MB, *GB, *PAGES</td>
</tr>
<tr>
<td valign="top">Element 2: Minimum size</td>
<td valign="top">
0-999999, <b><u>0</u></b></td>
</tr>
<tr>
<td valign="top">Element 3: Maximum size</td>
<td valign="top">
0-999999, <b><u>*NOMAX</u></b></td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="MOVSPLFBRM.OPTION"></a>
<h3>Run option (OPTION)</h3>
<p>Specifies whether you want to produce a report of spooled file candidates for movement or process a move operation.
</p>
<p>
<b>Note: </b>You should always run a report of move candidates (*REPORT option) prior to processing the move operation.
</p>
<dl>
<dt><b><u>*REPORT</u></b></dt>
<dd>You want to produce the Move Spooled Files using BRM report. The report is written to printer file QP1AHSF.
</dd>
<dt><b>*MOVE</b></dt>
<dd>You want to process a move operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.TOOUTQ"></a>
<h3>To output queue (TOOUTQ)</h3>
<p>Specifies the name of the library and output queue to which you want to move spooled files. The result can be either a report or movement of spooled files to output queue from another output queue.
</p>
<p><b>Qualifier 1: To output queue </b>
</p>
<dl>
<dt><b><i>to-output-queue-name</i></b></dt>
<dd>Specify the name of an output queue to which you want to move the spooled files.
</dd>
</dl>
<p><b>Qualifier 2: Library </b>
</p>
<dl>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the name of a library that contains the output queue.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.FROMOUTQ"></a>
<h3>From output queue (FROMOUTQ)</h3>
<p>Specifies the name of the library and output queue from which you want to move spooled files. A special value of *ALL is provided to indicate that all output queues on the system are to be processed. If *ALL is specified, no value can be specified for a library name. When *ALL is not specified for the From output queue name, a library name must be specified to indicate which library contains the from output queue. A special value of *ALL is supported for the From output queue library meaning all libraries in the system, including QSYS, are searched. The result can be either a report or movement of spooled files from an output queue to another output queue.
</p>
<p><b>Qualifier 1: From output queue </b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all output queues in the report or move process. No value can be specified for library when using the special value *ALL.
</dd>
<dt><b><i>generic*-from-output-queue-name</i></b></dt>
<dd>Specify the generic name for the output queue. A generic name is a character string of one or more characters followed by an asterisk (*): for example, ABC*. The asterisk (*) substitutes for any valid characters. A generic name specifies all output queues with names that begin with the generic prefix, for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete output queue name.
</dd>
<dt><b><i>from-output-queue-name</i></b></dt>
<dd>Specify the name of an output queue that you want to include in the report or move process.
</dd>
</dl>
<p><b>Qualifier 2: Library </b>You must specify a library name or the special value *ALL when you specify the from output queue name.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All libraries in the system including QSYS are searched.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the name of a library that is to be searched for the spooled file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.FILE"></a>
<h3>Select file (FILE)</h3>
<p>Specifies which spooled files based on file names are to be moved.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all spooled files regardless of name in the report or move operation.
</dd>
<dt><b><i>spooled-file-name</i></b></dt>
<dd>Specify the name of a spooled file that you want to include in the report or move operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.JOB"></a>
<h3>Select job name (JOB)</h3>
<p>Specifies which spooled files, based on the name of the job that created them, are to be moved.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all spooled files, regardless of the job that created them, in the report or move operation.
</dd>
<dt><b>*</b></dt>
<dd>All spooled files for the jobs whose name matches the job running this command are selected.
</dd>
<dt><b><i>job-name</i></b></dt>
<dd>Specify the name of a job whose spooled files are to be included in the report or move operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.USER"></a>
<h3>Select user (USER)</h3>
<p>Specifies which spooled files based on the name of the user that created them are to be included in the report or move operation.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include spooled files for all users in the report or move operation.
</dd>
<dt><b><i>user-name</i></b></dt>
<dd>Specify the name of a user whose spooled files are to be included in the report or move operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.USRDTA"></a>
<h3>Select user data (USRDTA)</h3>
<p>Specifies which spooled files, based on the associated user data tag, are to be included in the report or move operation.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include spooled files with any data tag in the report or move operation.
</dd>
<dt><b><i>user-data</i></b></dt>
<dd>Specify the user data that you want to include in the report or move operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.FROMASP"></a>
<h3>From ASP (FROMASP)</h3>
<p>Restricts spool file search to include only data from output queues contained in libraries residing in the specified auxiliary storage pool.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all auxiliary storage pools in the report or move operation.
</dd>
<dt><b>*SYSTEM</b></dt>
<dd>Include only the system (1) auxiliary storage pool in the report or move operation.
</dd>
<dt><b><i>from-ASP-name</i></b></dt>
<dd>Specify the name of an auxiliary storage pool that you want to include in the report or move operation.
</dd>
<dt><b><i>from-ASP-number</i></b></dt>
<dd>Specify the number of an auxiliary storage pool that you want to include in the report or move operation.
</dd>
</dl>
<p>
<b>Note: </b>UDFS, primary and secondary auxiliary storage pools are not supported for this parameter.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.SLTCRTDATE"></a>
<h3>Select create date (SLTCRTDATE)</h3>
<p>Specifies a range of creation dates that you want to use when reporting or moving spooled files. The <b>From date </b>is the beginning of a date range and the <b>To date </b>is the end of the date range. Only spooled files that were created on or after the From date and on or before the To date are included in the selected spooled files.
</p>
<p>
<b>Note: </b>Using this parameter, it is possible to enter a date with no separator, or a number of days which can be up to 5 digits in length. For instance, if you are using month/day/year format, the number 12904 would be formatted as January 29, 2004. If on the other hand, you entered a number 13904, BRMS assume that this is not a date, but rather is a number. BRMS always tries to calculate a calendar date first when a number is entered and then if the date it calculates is not valid, assumes that it is a number of days. If the number that is entered is over 5 digits and the date that it calculates is not valid, you receive an error message.
</p>
<p><b>Element 1: From date </b>
</p>
<dl>
<dt><b><u>*BEGIN</u></b></dt>
<dd>The earliest creation date is the beginning date of a date range.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>The current date is the beginning date of a date range.
</dd>
<dt><b><i>from-create-date</i></b></dt>
<dd>Specify the date in job date format with or without date separators that you want to be the beginning date of a date range.
</dd>
<dt><b><i>number-of-days</i></b></dt>
<dd>Specify the number of days before the current day that is used to determine the starting date of the date range.
</dd>
</dl>
<p><b>Element 2: To date </b>
</p>
<dl>
<dt><b><u>*END</u></b></dt>
<dd>The last date found is the end of the date range for the search.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>The current date is the ending date of the date range.
</dd>
<dt><b><i>to-create-date</i></b></dt>
<dd>Specify the date in job date format with or without date separators that you want to be the ending date of a date range.
</dd>
<dt><b><i>number-of-days</i></b></dt>
<dd>Specify the number of days before the current day that is used to determine the ending date of the date range.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.SLTUSEDATE"></a>
<h3>Select last used date (SLTUSEDATE)</h3>
<p>Specifies a range of last used dates that you want to use when reporting or moving spooled files. The <b>From date </b>is the beginning of a date range and the <b>To date </b>is the end of the date range. Only spooled files that were last used on or after the From date and on or before the To date are included in the selected spooled files.
</p>
<p>
<b>Note: </b>Using this parameter, it is possible to enter a date with no separator, or a number of days which can be up to 5 digits in length. For instance, if you are using month/day/year format, the number 12904 would be formatted as January 29, 2004. If on the other hand, you entered a number 13904, BRMS assume that this is not a date, but rather is a number. BRMS always tries to calculate a calendar date first when a number is entered and then if the date it calculates is not valid, assumes that it is a number of days. If the number that is entered is over 5 digits and the date that it calculates is not valid, you receive an error message.
</p>
<p><b>Element 1: From date </b>
</p>
<dl>
<dt><b><u>*BEGIN</u></b></dt>
<dd>The earliest last used date is the beginning date of a date range.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>The current date is the beginning date of a date range.
</dd>
<dt><b><i>from-use-date</i></b></dt>
<dd>Specify the date in job date format with or without date separators that you want to be the beginning date of a date range.
</dd>
<dt><b><i>number-of-days</i></b></dt>
<dd>Specify the number of days before the current day that is used to determine the starting date of the date range.
</dd>
</dl>
<p><b>Element 2: To date </b>
</p>
<dl>
<dt><b><u>*END</u></b></dt>
<dd>The last date found is the end of the date range for the search.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>The current date is the ending date of the date range.
</dd>
<dt><b><i>to-use-date</i></b></dt>
<dd>Specify the date in job date format with or without date separators that you want to be the ending date of a date range.
</dd>
<dt><b><i>number-of-days</i></b></dt>
<dd>Specify the number of days before the current day that is used to determine the ending date of the date range.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="MOVSPLFBRM.SLTSIZE"></a>
<h3>Select size (SLTSIZE)</h3>
<p>Specifies the size of spooled files that are to be included in the report or move operation. Three positional values can be be specified to select the files. Only files that are larger in size than the Minimum size or smaller in size than the Maximum size are selected.
</p>
<p><b>Element 1: Size type </b>
</p>
<dl>
<dt><b><u>*KB</u></b></dt>
<dd>The spooled file size is specified in kilobytes.
</dd>
<dt><b>*MB</b></dt>
<dd>The spooled file size is specified in megabytes.
</dd>
<dt><b>*GB</b></dt>
<dd>The spooled file size is specified in gigabytes.
</dd>
<dt><b>*PAGES</b></dt>
<dd>The spooled file size is specified in pages.
</dd>
</dl>
<p><b>Element 2: Minimum size </b>
</p>
<dl>
<dt><b><u>0</u></b></dt>
<dd>Spooled files with a size that is greater than zero are included.
</dd>
<dt><b><i>minimum-size</i></b></dt>
<dd>Specify the size that a spooled file must equal or exceed to be included in the report or move operation. The spooled file size can range from 0 to 999,999 and is used with the <u> Size type </u> and <u> Maximum size </u> values to determine which files to include.
</dd>
</dl>
<p><b>Element 3: Maximum size </b>
</p>
<dl>
<dt><b><u>*NOMAX</u></b></dt>
<dd>All spooled are included that are greater than or equal to the value specified in the Minimum size parmameter.
</dd>
<dt><b><i>maximum-size</i></b></dt>
<dd>Specify the size that a spooled file must not exceed to be included in the report or move operation. To be included in the selection, the specified size must also be equal to or greater than the minimum size specification and less than or equal to the specified size. The spooled file size can range from 1 to 999,999 and is used with the <u> Size type </u> value to determine which files to include.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="MOVSPLFBRM.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Move Large Spooled Files in System ASP</b>
</p>
<p>
<pre>
MOVSPLFBRM OPTION(*MOVE) TOOUTQ(MYLIB/MYOUTQ)
FROMASP(*SYSTEM) SLTSIZE(*MB 50 *NOMAX)
</pre>
</p>
<p>This command moves all spooled files currently in the system ASP that are fifty or more megabytes in size to the output queue named MYOUTQ in the library named MYLIB. This example assumes MYLIB is not in the system ASP, and the ASP attribute of the spooled file for the MYOUTQ output queue specifies that spooled files are placed in the same ASP as the output queue.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="MOVSPLFBRM.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>BRM1131</b></dt>
<dd>Library &amp;1 not found or not available.
</dd>
<dt><b>BRM1917</b></dt>
<dd>Feature not installed.
</dd>
<dt><b>BRM1921</b></dt>
<dd>Feature not licensed.
</dd>
<dt><b>BRM1F18</b></dt>
<dd>No output queues were found meeting selection criteria.
</dd>
<dt><b>BRM2112</b></dt>
<dd>ASP &amp;2 not valid.
</dd>
<dt><b>BRM1F27</b></dt>
<dd>Operation not allowed, resources not available.
</dd>
<dt><b>BRM1F28</b></dt>
<dd>Migration not performed.
</dd>
<dt><b>BRM2112</b></dt>
<dd>ASP &amp;2 not valid.
</dd>
<dt><b>BRM2270</b></dt>
<dd>Output queue &amp;2 in library &amp;3 cannot be used for migration.
</dd>
<dt><b>BRM4040</b></dt>
<dd>Access denied for user &amp;1.
</dd>
<dt><b>BRM40A2</b></dt>
<dd>BRMS product initialization required.
</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="#MOVSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>