ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/qsppubpi.htm

366 lines
9.5 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">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Publish Print Information (QSPPUBPI) API</title>
<!-- Begin Header Records ========================================== -->
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<!-- QSPPUBPI SCR A converted by B2H R4.1 (346) (CMS) by V2CDIJAB at -->
<!-- RCHVMW2 on 15 Nov 2000 at 15:12:57 -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!--File Edited by Kersten Oct 2001 -->
<!--End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link -->
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<h2>Publish Print Information (QSPPUBPI) API</h2>
<div class="box" style="width: 80%;">
<br>
&nbsp;&nbsp;Required Parameter Group:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">1</td>
<td align="left" valign="top" width="50%">Publishing action</td>
<td align="left" valign="top" width="20%">Input</td>
<td align="left" valign="top" width="20%">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">Print information</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Char(*)</td>
</tr>
<tr>
<td align="center" valign="top">3</td>
<td align="left" valign="top">Length of Print Information</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">4</td>
<td align="left" valign="top">Information format</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Char(8)</td>
</tr>
<tr>
<td align="center" valign="top">5</td>
<td align="left" valign="top">Error Code</td>
<td align="left" valign="top">I/O</td>
<td align="left" valign="top">Char(*)</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: No<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The Publish Print Information (QSPPUBPI) API collects print object
information and queues it for publishing in an LDAP directory whenever a print
object is published. It also can be used to stop publishing for a print
object.</p>
<p>Print publishing is included as part of the configuration for directory
services from the iSeries Navigator interface. Before configuring print
publishing, the directory to use should be considered carefully to avoid
migration problems. Changing the directory can be done from iSeries
Navigator or by using the Change Directory Server Attributes (QgldChgDirSrvA)
API.</p>
<br>
<h3>Authorities and Locks</h3>
<dl>
<dt><em>Printer device description authority</em></dt>
<dd>The caller needs both of the following:
<ul>
<li>*IOSYSCFG special authority</li>
<li>*CHANGE, *OBJMGT to the printer device</li>
</ul>
</dd>
</dl>
<br>
<h3>Required Parameter Group</h3>
<dl>
<dt><strong>Publishing action</strong></dt>
<dd>INPUT; BINARY(4)
<p>The action to be performed for the print object.
The following values may be specified:</p>
<table cellpadding="5">
<!-- cols="5 95" -->
<tr>
<td align="left" valign="top"><em>1</em></td>
<td align="left" valign="top">Publish a print object</td>
</tr>
<tr>
<td align="left" valign="top"><em>2</em></td>
<td align="left" valign="top">Stop publishing for a print object</td>
</tr>
<tr>
<td align="left" valign="top"><em>3</em></td>
<td align="left" valign="top">Stop publishing for a print object and delete the
object's information from the directory</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Print information</strong></dt>
<dd>INPUT; CHAR(*)
<p>The formatted print information. For more information, see <a href=
"#HDRPPPAPI1">Printer information formats</a>.</p>
</dd>
<dt><strong>Length of print information</strong></dt>
<dd>INPUT; BIN(4)
<p>The total length of the print information provided for the information
format specified.</p>
</dd>
<dt><strong>Information format</strong></dt>
<dd>INPUT; CHAR(8)
<p>The type of print information on which the publishing action will be
performed. The possible format names are:</p>
<table cellpadding="5">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top"><em>SPPA0100</em></td>
<td align="left" valign="top">Printer devices</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Error code</strong></dt>
<dd>I/O; CHAR(*)
<p>The structure in which to return error information. For the format of the
structure, see <a href="../apiref/error.htm#hdrerrcod">Error code parameter</a>.</p>
</dd>
</dl>
<br>
<h3><a name="HDRPPPAPI1">Printer information formats</a></h3>
<p>The structure of the printer information format is listed below. For a
description of each field, see <a href="#HDRPPPAFD1">Field
Descriptions</a>.</p>
<br>
<h4>SPPA0100 Format</h4>
<table border width="80%">
<tr>
<th align="center" valign="bottom" colspan="2">Offset</th>
<th align="left" valign="bottom" rowspan="2">Type</th>
<th align="left" valign="bottom" rowspan="2">Field</th>
</tr>
<tr>
<th align="center" valign="bottom">Dec</th>
<th align="center" valign="bottom">Hex</th>
</tr>
<tr>
<td align="center" valign="top" width="10%">0</td>
<td align="center" valign="top" width="10%">0</td>
<td align="left" valign="top" width="30%">Array of CHAR(10)</td>
<td align="left" valign="top" width="50%">Printer device name</td>
</tr>
</table>
<br>
<p>This format is used with a printer device name or list of names.</p>
<ul>
<li>Action 1 is used to publish a new printer or list of printers, such as may
be selected in iSeries Navigator. This action causes information about each
printer to be stored in the directory.<br><br></li>
<li>Action 2 is used to stop publishing a published printer or list of
printers. No action is taken if the printer device information was not
published previously. This action removes the i5/OS specific information from
the printer's directory entry, but does not remove the entry from the
directory. Future changes to the printer device will not be reflected in the
directory.<br><br></li>
<li>Action 3 is used to stop publishing a published printer or list of printers
and to remove the directory entry for each printer if one exists. No action is
taken if the printer device information was not published previously.</li>
</ul>
<br>
<h3><a name="HDRPPPAFD1">Field Descriptions</a></h3>
<p><strong>Printer device name.</strong> The name of a printer device to
publish or stop publishing.</p>
<br>
<h3>Error Messages</h3>
<table cellpadding="5">
<!-- cols="15 85" -->
<tr>
<th align="left" valign="top" nowrap>Message ID</th>
<th align="left" valign="top">Error Message Text</th>
</tr>
<tr>
<td align="left" valign="top">CPF2207 E</td>
<td align="left" valign="top">Not authorized to use object &amp;1 in library
&amp;3 type *&amp;2.</td>
</tr>
<tr>
<td align="left" valign="top">CPF24B4 E</td>
<td align="left" valign="top">Severe error occurred while addressing parameter
list.</td>
</tr>
<tr>
<td align="left" valign="top">CPF2625 E</td>
<td align="left" valign="top">Not able to allocate object &amp;1.</td>
</tr>
<tr>
<td align="left" valign="top">CPF2702 E</td>
<td align="left" valign="top">Device Description &amp;2 not found.</td>
</tr>
<tr>
<td align="left" valign="top">CPF34AD E</td>
<td align="left" valign="top">Value specified in input data is not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF34AE E</td>
<td align="left" valign="top">Printer publishing is not configured or is
disabled.</td>
</tr>
<tr>
<td align="left" valign="top">CPF34BA E</td>
<td align="left" valign="top">Action &amp;1 not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF34BB E</td>
<td align="left" valign="top">Error occurred while publishing printer
&amp;1.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C1D E</td>
<td align="left" valign="top">Length specified in parameter &amp;1 is not
valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C1E E</td>
<td align="left" valign="top">Required parameter &amp;1 omitted.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C21 E</td>
<td align="left" valign="top">Format name &amp;1 is not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF1 E</td>
<td align="left" valign="top">Error code parameter not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF2 E</td>
<td align="left" valign="top">Error(s) occurred during running of &amp;1
API.</td>
</tr>
<tr>
<td align="left" valign="top">CPF8105 E</td>
<td align="left" valign="top">Device Description &amp;4 damaged.</td>
</tr>
<tr>
<td align="left" valign="top">CPF9872 E</td>
<td align="left" valign="top">Program or service program &amp;1 in library
&amp;2 ended.</td>
</tr>
<tr>
<td align="left" valign="top">CPFA314 E</td>
<td align="left" valign="top">Memory allocation error.</td>
</tr>
</table>
<br>
<hr>
API introduced: V5R1
<hr>
<table cellpadding="2" cellspacing="2" align="center">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"print1.htm">Print APIs</a> | <a href="aplist.htm">APIs by
category</a></td>
</tr>
</table>
</body>
</html>