Remove Server Share (QZLSRMS) API


  Required Parameter Group:

1 Share name Input Char(12)
2 Error code I/O Char(*)

  Default Public Authority: *USE

  Threadsafe: No

The Remove Server Share (QZLSRMS) API removes a share from the list of files or printers on the server. When this function removes a share, all connections to the shared resource are disconnected.


Authorities and Locks

To use this API, you must have *IOSYSCFG special authority, own the integrated file system directory, or own the system output queue that the share references.


Required Parameter Group

Share name
INPUT; CHAR(12)

The name of the share to be removed.

Error code
I/O; CHAR(*)

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


Error Messages

Message ID Error Message Text
CPF3C1E E Required parameter &1 omitted.
CPF3CF1 E Error code parameter not valid.
CPF3CF2 E Error(s) occurred during running of &1 API.
CPFA0D4 E File system error occurred.
CPFB682 E API &1 failed with reason code &2.
CPFB683 E Data conversion failed for API &1.
CPFB684 E User does not have the correct authority for API &1.
CPFB68A E Error occurred while working with shared resource &2.
CPFB68B E Character is not valid for value &3.
CPFB693 E Data conversion failed for &5 API.
CPIB685 E Error occurred on IBM® i Support for Windows Network Neighborhood (IBM i NetServer) request.


API introduced: V4R2

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