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

423 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>Work with Saved Spooled Files (WRKSPLFBRM)</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="WRKSPLFBRM.Top_Of_Page"></a>
<h2>Work with Saved Spooled Files (WRKSPLFBRM)</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="#WRKSPLFBRM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#WRKSPLFBRM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#WRKSPLFBRM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="WRKSPLFBRM"></a>
<p>The Work with Saved Spooled Files using BRM (WRKSPLFBRM) command creates a display or report of saved spooled files based on specified libraries, output queues, auxiliary storage pools, files, job names, users, date ranges and sequences. Processing the Work with Saved Spooled Files command takes you to the Work with Saved Spooled Files display where you can remove, display or retrieve selected spooled file entries as well as work with media that contains saved spooled files. If you want to produce a report, the report that is produced is the Saved Spooled File report. The report, if printed, is written to printer file QP1AOQ.
</p>
<p>To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="WRKSPLFBRM.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="#WRKSPLFBRM.OUTQ"><b>OUTQ</b></a></td>
<td valign="top">Output queue</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Output queue</td>
<td valign="top"><i>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="#WRKSPLFBRM.ASP"><b>ASP</b></a></td>
<td valign="top">Auxiliary storage pool</td>
<td valign="top"><i>Character value</i>, <b><u>*ALL</u></b>, *SYSTEM</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.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 3</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.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, Positional 4</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.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, Positional 5</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.USRDTA"><b>USRDTA</b></a></td>
<td valign="top">User data</td>
<td valign="top"><i>Character value</i>, <b><u>*ALL</u></b></td>
<td valign="top">Optional, Positional 6</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#WRKSPLFBRM.SLTDATE"><b>SLTDATE</b></a></td>
<td valign="top">Select dates</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"><a href="#WRKSPLFBRM.SAVSTS"><b>SAVSTS</b></a></td>
<td valign="top">Save status</td>
<td valign="top"><b><u>*ALL</u></b>, *ERROR, *NOERROR</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.SORT"><b>SORT</b></a></td>
<td valign="top">Sequence option</td>
<td valign="top"><b><u>*DATE</u></b>, *FILE, *JOB</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.FROMSYS"><b>FROMSYS</b></a></td>
<td valign="top">From system</td>
<td valign="top"><i>Character value</i>, <b><u>*LCL</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#WRKSPLFBRM.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><b><u>*</u></b>, *PRINT</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="WRKSPLFBRM.OUTQ"></a>
<h3>Output queue (OUTQ)</h3>
<p>Specifies the name of the library and output queue that you want to include in the display or report.
</p>
<p><b>Qualifier 1: Output queue </b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all output queues in the display or report.
</dd>
<dt><b><i>output-queue-name</i></b></dt>
<dd>Specify the name of an output queue that you want to include in the display or report.
</dd>
</dl>
<p><b>Qualifier 2: Library </b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All libraries or special values containing the spooled files are to be included in the list of spooled files.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the name of a library that contained the spooled file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.ASP"></a>
<h3>Auxiliary storage pool (ASP)</h3>
<p>Specifies the auxiliary storage pool that contained the spooled files when the spooled files were saved.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all auxiliary storage pools that contained saved spooled files in the report or display.
</dd>
<dt><b>*SYSTEM</b></dt>
<dd>You want to include saved spooled files that were in the system (1) auxiliary storage pool in the report or display.
</dd>
<dt><b><i>auxiliary-storage-pool-number</i></b></dt>
<dd>Specify the number of an auxiliary storage pool that contained the saved spooled filed you want to include in the report or display.
</dd>
<dt><b><i>auxiliary-storage-pool-name</i></b></dt>
<dd>Specify the name of an auxiliary storage pool that contained the saved spooled file that you want to include in the report or display.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.FILE"></a>
<h3>File (FILE)</h3>
<p>Specifies the name of the printer file that contained the spooled file when it was saved that you want to include in the display or report.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all files in the display or report.
</dd>
<dt><b><i>file-name</i></b></dt>
<dd>Specify the name of a file that you want to include in the display or report.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.JOB"></a>
<h3>Job name (JOB)</h3>
<p>Specifies the name of the job that which created the spooled file that you want to include in the display or report.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all spooled files for jobs in the display or report.
</dd>
<dt><b><i>job-name</i></b></dt>
<dd>Specify the name of a job whose files are to be included in the display or report.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.USER"></a>
<h3>User (USER)</h3>
<p>Specifies the name of the user that created the spooled file that you want to include in the display or report.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include files for all users in the display or report.
</dd>
<dt><b><i>user-name</i></b></dt>
<dd>Specify the name of a user whose files are to be included in the display or report.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.USRDTA"></a>
<h3>User data (USRDTA)</h3>
<p>Specifies the data associated with the spooled file that was saved and that you want to include in the display or report.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all user data in the display or report.
</dd>
<dt><b><i>user-data</i></b></dt>
<dd>Specify the user data that you want to include in the display or report.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.SLTDATE"></a>
<h3>Select dates (SLTDATE)</h3>
<p>Specifies a range of dates that you want to use when reporting on saved 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.
</p>
<p>
<b>Note: </b>The <b>From date </b>is based on the date the spooled file was created.
</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 save date on the file 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-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 in the file 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-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="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.SAVSTS"></a>
<h3>Save status (SAVSTS)</h3>
<p>Specifies whether you want to display or report all successful saves, unsuccessful saves or both.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>You want to include media information that was saved successfully and unsuccessfully in the display or report.
</dd>
<dt><b>*ERROR</b></dt>
<dd>You want to include only unsuccessful saves in the display or report.
</dd>
<dt><b>*NOERROR</b></dt>
<dd>You want to include only successful saves in the display or report.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.SORT"></a>
<h3>Sequence option (SORT)</h3>
<p>The saved spooled file report can be sequenced several ways.
</p>
<dl>
<dt><b><u>*DATE</u></b></dt>
<dd>Sequences the saved spooled file report by date.
</dd>
<dt><b>*FILE</b></dt>
<dd>Sequences the saved spooled file report by file.
</dd>
<dt><b>*JOB</b></dt>
<dd>Sequences the saved spooled file report by job.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.FROMSYS"></a>
<h3>From system (FROMSYS)</h3>
<p>Specifies the location and network identification of the system whose spooled file information that you want to work with.
</p>
<p>
<b>Note: </b>Use the Display Network Attributes (DSPNETA) command to view the system network attributes.
</p>
<p>
<b>Note: </b>The BRMS Network feature (Option 1) is required to use this value if a value other than *LCL is specified.
</p>
<dl>
<dt><b><u>*LCL</u></b></dt>
<dd>Specifies that the from-system is the local system. BRMS uses the <b>Default local location name (LCLLOCNAME)</b> network attribute and not the <b>System name (SYSNAME)</b> network attribute to determine the current system name. In most cases, the systems have the same value specified for LCLLOCNAME as for SYSNAME.
</dd>
<dt><b><i>location-name</i></b></dt>
<dd>Specifies the <b>Default local location name (LCLLOCNAME)</b> network attribute of the remote system for the network operation. The current system <b>Local network ID (LCLNETID)</b> network attribute is used to connect with the remote system.
</dd>
<dt><b><i>network-id.location-name</i></b></dt>
<dd>Specifies the <b>Local network ID (LCLNETID)</b> and the <b>Default local location name (LCLLOCNAME)</b> network attributes of the remote system for the network operation. Specify these values using the format nnnnnnnn.cccccccc where nnnnnnnn is the LCLNETID and cccccccc is the LCLLOCNAME.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKSPLFBRM.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The output is displayed (if requested by an interactive job) or printed (if requested by a batch job).
</dd>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKSPLFBRM.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Work with Saved Spooled Files by Date </b>
</p>
<p>
<pre>
WRKSPLFBRM SLTDATE('1/1/03' '4/2/03') SORT(*JOB)
</pre>
</p>
<p>This command displays the Work with Saved Spooled Files panel, showing a list of all spooled files that were saved from January 1 to April 2, 2003. The spooled files are displayed in job sequence.
</p>
<p><b>Example 2: Work with Saved Spooled Files by ASP </b>
</p>
<p>
<pre>
WRKSPLFBRM ASP(PRIMETIME)
</pre>
</p>
<p>This command displays the Work with Saved Spooled Files panel, showing a list of all spooled files that were saved from auxiliary storage pool device PRIMETIME. The spooled files are displayed in date sequence.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKSPLFBRM.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>BRM2154</b></dt>
<dd>ASP value of *ALL must be specified.
</dd>
<dt><b>BRM215A</b></dt>
<dd>ASP value of *ALL or 1-32 must be specified.
</dd>
<dt><b>BRM40A2</b></dt>
<dd>BRMS product initialization required.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKSPLFBRM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>