Change Print Server Share (QZLSCHPS) API


  Required Parameter Group:


  Optional Parameter Group 1:


  Optional Parameter Group 2:


  Default Public Authority: *USE

  Threadsafe: No

The Change Print Server Share (QZLSCHPS) API changes the information about a shared printer.


Authorities and Locks

To use this API, you must have *IOSYSCFG special authority or own the system output queue.


Required Parameter Group

Share name
INPUT; CHAR(12)

The name of the share to be changed.

Qualified output queue name
INPUT; CHAR(20)

The name of the qualified output queue. The first 10 characters identify the name of the output queue. The second 10 characters contain the name of the library that contains the output queue.

Text description
INPUT; CHAR(50)

The text description for this share.

Spooled file type
INPUT; BINARY(4)

The type of spooled files that are created by using this share. This is based on spooled file data expected to be sent by the client; no conversion will be done.

Note: In most cases, the automatic type sense value is selected. The other options are needed for downward compatibility. Values can be:


Print driver type
INPUT; CHAR(50)

The text string that identifies the print driver appropriate for this share. When personal computers connect to this shared printer, this identifies the print driver that they should use. This text should match the name of a print driver known to the personal computer operating system. For example, IBM® AFP 3820 is an Advanced Function Print driver type.

Error code
I/O; CHAR(*)

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


Optional Parameter Group 1

Qualified printer file
INPUT; CHAR(20)

A template containing attributes used to create spooled files. The first 10 characters contain the name of the printer file. The second 10 characters contain the name of the library that contains the printer file. If the printer file parameter is omitted, the API assumes that no change is requested and the current value remains unchanged.

This parameter must be specified when optional parameter 2 is specified.


Optional Parameter Group 2

Publish print share
INPUT; CHAR(1)

Whether to publish this print share. Possible values are:

If the publish print share parameter is omitted, the API assumes no change is requested and the current value remains unchanged.


Error Messages



API introduced: V4R2

[ Back to top | Server Support APIs | APIs by category ]