Publish Print Information (QSPPUBPI) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

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.

Print publishing is included as part of the configuration for directory services from the System i™ 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 System i Navigator or by using the Change Directory Server Attributes (QgldChgDirSrvA) API.


Authorities and Locks

Printer device description authority
The caller needs both of the following:
  • *IOSYSCFG special authority
  • *CHANGE, *OBJMGT to the printer device

Required Parameter Group

Publishing action
INPUT; BINARY(4)

The action to be performed for the print object. The following values may be specified:


Print information
INPUT; CHAR(*)

The formatted print information. For more information, see Printer Information Formats.

Length of print information
INPUT; BIN(4)

The total length of the print information provided for the information format specified.

Information format
INPUT; CHAR(8)

The type of print information on which the publishing action will be performed. The possible format names are:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Printer Information Formats

The structure of the printer information format is listed below. For a description of each field, see Field Descriptions.


SPPA0100 Format


This format is used with a printer device name or list of names.


Field Descriptions

Printer device name. The name of a printer device to publish or stop publishing.


Error Messages



API introduced: V5R1

[ Back to top | Print APIs | APIs by category ]