Open Stream (QzdmOpenStream) API

  Required Parameter Group:


  Library Name / Service Program: QSOC/QZDMMDTA

  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Open Stream (QzdmOpenStream) API is used to open an OptiConnect stream. The Open Stream (QzdmOpenStream) API returns a stream identifier, which is then required as input for subsequent OptiConnect APIs that require a stream identifier.


Restrictions

The following restrictions apply:


Authorities and Locks

Service Program Authority
*EXECUTE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that is to receive the output control information from the Open Stream (QzdmOpenStream) API.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable, in bytes. The length of the receiver variable must be at least equal to or greater than the length of the output format.

Format name of receiver variable
INPUT; CHAR(8)

The format of the information that is returned from the Open Stream (QzdmOpenStream) API. The OSTR0100 format is used by this API for the receiver variable. See OSTR0100 Format for more information on the OSTR0100 format.

Error code
I/O; CHAR(*)

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


OSTR0100 Format

The following table defines the information returned for Format OSTR0100.



Field Descriptions

Stream identifier. The OptiConnect stream that is to be used for communications. This field is provided as output with the Open Stream (QzdmOpenStream) API. This field must then be provided as input on all subsequent OptiConnect API requests that require a stream identifier.


Error Messages



API introduced: V3R7

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