403 lines
16 KiB
HTML
403 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>Query Distributions (QRYDST)</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="QRYDST.Top_Of_Page"></a>
|
||
|
<h2>Query Distributions (QRYDST)</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="#QRYDST.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#QRYDST.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#QRYDST.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="QRYDST"></a>
|
||
|
<p>The Query Distribution (QRYDST) command allows you to request distribution information either for yourself or on behalf of another user.
|
||
|
</p>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>If you request distribution information for another user, you must have been given permission to work on behalf of that user with the GRTUSRPMN command.
|
||
|
</li>
|
||
|
<li>If user ID(*ALLAUT) is specified, and if you do not have permission to work on behalf of the other user, only information about your own distributions is returned.
|
||
|
</li>
|
||
|
<li>The requester of the command must be enrolled in the system distribution directory. Personal distribution cannot be requested if the requester is working on behalf of another user.
|
||
|
</li>
|
||
|
<li>The DLTSTS parameter does not apply to incoming distributions. When OPTION (*IN) is specified, the DLTSTS parameter is ignored.
|
||
|
</li>
|
||
|
<li>Personal distribution cannot be queried if the requester is working on behalf of another user.
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="QRYDST.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="#QRYDST.OPTION"><b>OPTION</b></a></td>
|
||
|
<td valign="top">Incoming or outgoing</td>
|
||
|
<td valign="top"><b><u>*IN</u></b>, *OUT</td>
|
||
|
<td valign="top">Optional, Positional 2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#QRYDST.USRID"><b>USRID</b></a></td>
|
||
|
<td valign="top">User identifier</td>
|
||
|
<td valign="top">Single values: <b><u>*CURRENT</u></b>, *ALLAUT<br>Other values: <i>Element list</i></td>
|
||
|
<td valign="top" rowspan="3">Optional, Positional 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 1: User ID</td>
|
||
|
<td valign="top">
|
||
|
<i>Character value</i></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 2: Address</td>
|
||
|
<td valign="top">
|
||
|
<i>Character value</i></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#QRYDST.DLTSTS"><b>DLTSTS</b></a></td>
|
||
|
<td valign="top">Delete status</td>
|
||
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#QRYDST.OUTFILE"><b>OUTFILE</b></a></td>
|
||
|
<td valign="top">File to receive output</td>
|
||
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values: <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>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top" rowspan="3"><a href="#QRYDST.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>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#QRYDST.STATUS"><b>STATUS</b></a></td>
|
||
|
<td valign="top">Status</td>
|
||
|
<td valign="top"><b><u>*ALL</u></b>, *NEW, *OLD, *OPENED, *UNOPENED, *LOCAL, *REMOTE, *FILEPND, *DELETED, *DAMAGED</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#QRYDST.CMDCHRID"><b>CMDCHRID</b></a></td>
|
||
|
<td valign="top">Command character identifier</td>
|
||
|
<td valign="top">Single values: <b><u>*SYSVAL</u></b>, *DEVD<br>Other values: <i>Element list</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 1: Graphic character set</td>
|
||
|
<td valign="top">
|
||
|
<i>Integer</i></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 2: Code page</td>
|
||
|
<td valign="top">
|
||
|
<i>Integer</i></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="QRYDST.OPTION"></a>
|
||
|
<h3>Incoming or outgoing (OPTION)</h3>
|
||
|
<p>Specifies the type of distribution information that is returned.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*IN</u></b></dt>
|
||
|
<dd>Information about incoming distribution is returned.
|
||
|
</dd>
|
||
|
<dt><b>*OUT</b></dt>
|
||
|
<dd>Information about outgoing distribution is returned. An outgoing distribution is the status being saved by the system for a distribution sent to one or more users with confirmation of delivery requested.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="QRYDST.USRID"></a>
|
||
|
<h3>User identifier (USRID)</h3>
|
||
|
<p>Specifies the user ID and the user ID address associated with this request.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*CURRENT</u></b></dt>
|
||
|
<dd>Your distribution information is returned.
|
||
|
</dd>
|
||
|
<dt><b>*ALLAUT</b></dt>
|
||
|
<dd>Your distribution information and information for all users who have given you permission to work on their behalf is returned.
|
||
|
</dd>
|
||
|
<dt><b><i>user-ID</i></b></dt>
|
||
|
<dd>Specify the user ID of the user whose distribution information is being returned. You must have permission to work on behalf of the user specified on this parameter if the named user ID is not your own.
|
||
|
</dd>
|
||
|
<dt><b><i>user-ID-address</i></b></dt>
|
||
|
<dd>Specify the user ID address of the user whose distribution information is being returned. You must have permission to work on behalf of the user specified on this parameter if the named user ID address is not your own.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="QRYDST.DLTSTS"></a>
|
||
|
<h3>Delete status (DLTSTS)</h3>
|
||
|
<p>Specifies whether the distribution status being kept for outgoing distributions is deleted from the system.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NO</u></b></dt>
|
||
|
<dd>The distribution status is not deleted from the system.
|
||
|
</dd>
|
||
|
<dt><b>*YES</b></dt>
|
||
|
<dd>The distribution status is deleted if all receivers have returned status.
|
||
|
<p>
|
||
|
<b>Note: </b>Other products use this status information. Care should be taken not to delete information that other products use to track their distribution.
|
||
|
</p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="QRYDST.OUTFILE"></a>
|
||
|
<h3>File to receive output (OUTFILE)</h3>
|
||
|
<p>Specifies the name of the database file to which the output is directed. If the output file does not exist, a database file is created in the specified library. If the file is created by this function, the text description will read: 'OUTFILE is created by QRYDST', and the authority for users with no specific authority is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority.
|
||
|
</p>
|
||
|
<p>If a new file is created and *IN is specified on the <b>Incoming or outgoing</b> prompt (OPTION parameter), the system uses QAOSILIN in QSYS with a format name OSLIN as a model.
|
||
|
</p>
|
||
|
<p>If a new file is created and *OUT is specified on the <b>Incoming or outgoing</b> prompt (OPTION parameter) the system uses QAOSILOT in QSYS with a format name OSLOUT as a model.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>The output is not directed to a database file. If *NONE is specified, the output from this command is a completion message containing the number of distributions on the Document Interchange Architecture (DIA) Distribution Recipient Index (*DRX) for the option and user ID and address specified.
|
||
|
<p>When *IN is specified on the <b>Incoming or outgoing</b> prompt (OPTION parameter), the total count of new and old status is returned. After each QRYDST, any mail with new status is changed to old status.
|
||
|
</p>
|
||
|
<p>
|
||
|
<b>Note: </b>Office Vision/400 disregards the old mail status and treats both old and new mail as if they have new status.
|
||
|
</p>
|
||
|
</dd>
|
||
|
<dt><b><i>data-base-file-name</i></b></dt>
|
||
|
<dd>Specify the name of the database file and library that receives the output of the display.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>The possible library values are:
|
||
|
</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 database file. If no current library entry exists in the library list, QGPL is used.
|
||
|
</dd>
|
||
|
<dt><b><i>library-name</i></b></dt>
|
||
|
<dd>Specify the library where the database file is located.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="QRYDST.OUTMBR"></a>
|
||
|
<h3>Output member options (OUTMBR)</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>
|
||
|
<p>The possible <b>member to receive output</b> values are:
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*FIRST</u></b></dt>
|
||
|
<dd>The first member in the file receives the output. If the member does not exist, the system creates a member with the name of the file specified on the <b>File to receive output</b> prompt (OUTFILE parameter).
|
||
|
</dd>
|
||
|
<dt><b><i>member-name</i></b></dt>
|
||
|
<dd>Specify the name of the file member that receives the output. If the member does not exist, the system creates the file member. If the member already exists, the system adds records to the end of the member or clears the member and then adds the records.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>The possible <b>add or replace</b> values are:
|
||
|
</p>
|
||
|
<dl>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b><u>*REPLACE</u></b></dt>
|
||
|
<dd>The system clears the existing member and adds the new records.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*ADD</b></dt>
|
||
|
<dd>The system adds the new records to the end of the existing records.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="QRYDST.STATUS"></a>
|
||
|
<h3>Status (STATUS)</h3>
|
||
|
<p>Specifies the mail entry status of the distribution for which you are requesting information. This parameter is valid only if *IN is specified on the <b>Incoming or outgoing</b> prompt (OPTION parameter) and an output file is specified on the <b>File to receive output</b> prompt (OUTFILE parameter).
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*ALL</u></b></dt>
|
||
|
<dd>Distribution information is returned regardless of the distributions' mail entry status.
|
||
|
</dd>
|
||
|
<dt><b>*NEW</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose mail entry status is NEW.
|
||
|
</dd>
|
||
|
<dt><b>*OLD</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose mail entry status is OLD, which indicates that the distribution has been queried once but has not been processed.
|
||
|
</dd>
|
||
|
<dt><b>*OPENED</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose mail entry status is OPENED.
|
||
|
</dd>
|
||
|
<dt><b>*UNOPENED</b></dt>
|
||
|
<dd>Distribution information is returned for those distributions whose mail entry status is either NEW or OLD.
|
||
|
</dd>
|
||
|
<dt><b>*LOCAL</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose mail entry status is LOCAL, which indicates that the distribution has been filed on the local system.
|
||
|
</dd>
|
||
|
<dt><b>*REMOTE</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose mail entry status is REMOTE, which indicates that the distribution has been filed on a remote system.
|
||
|
</dd>
|
||
|
<dt><b>*FILEPND</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose status is FILEPND, which indicates that the distribution is being filed on the local system or a remote system, but the file operation has not finished.
|
||
|
</dd>
|
||
|
<dt><b>*DELETED</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose status is DELETED, which indicates that the document referred to by the distribution has been deleted.
|
||
|
</dd>
|
||
|
<dt><b>*DAMAGED</b></dt>
|
||
|
<dd>Distribution information is returned only for those distributions whose status is DAMAGED, which indicates that the document referred to by the distribution is damaged.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="QRYDST.CMDCHRID"></a>
|
||
|
<h3>Command character identifier (CMDCHRID)</h3>
|
||
|
<p>Specifies the character identifier (graphic character set and code page) for the data being entered as command parameter values. The character identifier is related to the display device used to enter the command.
|
||
|
</p>
|
||
|
<p>The value specified on the <b>User identifier</b>prompt (USRID parameter) is translated to character set and code page '930 500'.
|
||
|
</p>
|
||
|
<p><b>Single values</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*SYSVAL</u></b></dt>
|
||
|
<dd>The system determines the graphic character set and code page values for the command parameters from the QCHRID system value.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*DEVD</b></dt>
|
||
|
<dd>The system determines the graphic character set and code page values from the display device description where this command was entered. This option is valid only when entered from an interactive job. If this option is specified in a batch job, an error occurs.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Element 1: Graphic character set</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>1-32767</i></b></dt>
|
||
|
<dd>Specify the graphic character set to use.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Element 2: Code page</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>1-32767</i></b></dt>
|
||
|
<dd>Specify the code page to use.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="QRYDST.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p>
|
||
|
<pre>
|
||
|
QRYDST USER(*CURRENT) OPTION(*IN)
|
||
|
OUTFILE(*CURLIB/MYFILE) OUTMBR(*FIRST *ADD)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command requests information about incoming distributions for the current user of this command. The output is directed to the database file MYFILE in the user's current library and is added to the first member in that file.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="QRYDST.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF900B</b></dt>
|
||
|
<dd>User ID and address &1 &2 not in System Distribution Directory.
|
||
|
</dd>
|
||
|
<dt><b>CPF900C</b></dt>
|
||
|
<dd>Sign on and verify of user failed.
|
||
|
</dd>
|
||
|
<dt><b>CPF905C</b></dt>
|
||
|
<dd>Error occurred trying to find a translation table.
|
||
|
</dd>
|
||
|
<dt><b>CPF907C</b></dt>
|
||
|
<dd>&1 requested distributions completed, acknowledge failed.
|
||
|
</dd>
|
||
|
<dt><b>CPF9096</b></dt>
|
||
|
<dd>Cannot use CMDCHRID(*DEVD), DOCCHRID(*DEVD) in batch job.
|
||
|
</dd>
|
||
|
<dt><b>CPF9097</b></dt>
|
||
|
<dd>Query distribution request failed.
|
||
|
</dd>
|
||
|
<dt><b>CPF9845</b></dt>
|
||
|
<dd>Error occurred while opening file &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF9847</b></dt>
|
||
|
<dd>Error occurred while closing file &1 in library &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF9860</b></dt>
|
||
|
<dd>Error occurred during output file processing.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QRYDST.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|