End Server Session (QZLSENSS) API


  Required Parameter Group:

1 Workstation name Input Char(15)
2 Error code I/O Char(*)

  Optional Parameter:

3 Session identifier Input Binary(8)

  Default Public Authority: *USE

  Threadsafe: No

The End Server Session (QZLSENSS) API ends a single session or all the sessions that were established from the specified workstation.


Authorities and Locks

To use this API, you must have *IOSYSCFG special authority.


Required Parameter Group

Workstation name
INPUT; CHAR(15)

The name of the workstation from which the session to the server was established. When specifying the session identifier parameter to end a single session, *SESSID must be specified for the workstation name.

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

Session identifier
INPUT; BINARY(8)

Allows the caller to end a single session. This parameter must be 0 if any value other than *SESSID is specified for the workstation name. Allowable values are:

0 All sessions for the specified workstation name are ended.
Session identifier The identified session is ended.

If the session identifier parameter is not specified, the API assumes a value of 0.


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.
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.
CPFB68E E Error ending iSeries Support for Windows Network Neighborhood (iSeries NetServer) session.


API introduced: V4R2
Top | Server Support APIs | APIs by category