Open Path (QzdmOpenPath) API

  Required Parameter Group:

1 Receiver variable Output Char(*)
2 Length of receiver variable Input Binary(4)
3 Format name of receiver variable Input Char(8)
4 Request variable Input Char(*)
5 Length of request variable Input Binary(4)
6 Format name of request variable Input Char(8)
7 Error code I/O Char(*)

  Library Name / Service Program: QSOC/QZDMMDTA

  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Open Path (QzdmOpenPath) API is used to open an OptiConnect path. The Open Path (QzdmOpenPath) API returns a path identifier that is then required as input for subsequent OptiConnect APIs that require a path 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 Path (QzdmOpenPath) 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 Path (QzdmOpenPath) API. The OPRC0100 format is used by this API for the receiver variable. See OPRC0100 Format for more information on the OPRC0100 format.

Request variable
INPUT; CHAR(*)

The request variable structure that describes the input for the Open Path (QzdmOpenPath) API.

Length of request variable
INPUT; BINARY(4)

The length of the request variable, in bytes. The length of the request variable must be at least equal to the length of the input format, and less than or equal to the maximum length of 4KB.

Format name of request variable
INPUT; CHAR(8)

The format of the information that is provided as input for the Open Path (QzdmOpenPath) API. The OPRQ0100 format is used by this API for the request variable. See OPRQ0100 Format for more information on the OPRQ0100 format.

Error code
I/O; CHAR(*)

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


OPRC0100 Format

The following table defines the information returned for Format OPRC0100.

Offset Type Field
Dec Hex
0 0 CHAR(8) Path identifier


OPRQ0100 Format

The following table defines the information required for format OPRQ0100.

Offset Type Field
Dec Hex
0 0 CHAR(16) Stream identifier
16 10 CHAR(8) Remote system name
24 18 CHAR(10) Program name
34 22 CHAR(10) Program library name


Field Descriptions

Path identifier. The OptiConnect path that is to be used for communications. This field is provided as output with the Open Path (QzdmOpenPath) API. This field must then be provided as input on all subsequent OptiConnect APIs that require a path identifier.

The path identifier is associated with the stream identifier that is provided as input, as a stream-identifier and path-identifier pair. For most applications, this stream-identifier and path-identifier pair needs to be used for all subsequent OptiConnect APIs that are used to control communications on the local system.

Remote system name. The name of the remote system to which the OptiConnect path is being opened. This is the current system name as displayed on the Display Network Attributes (DSPNETA) display on the remote system.

Program name. The program name on the remote system that controls communications on the remote system. This program is called by the OptiConnect agent job (QZDMAGNT) on the remote system, and is passed a stream-identifier and path-identifier pair.

For most applications, this stream-identifier and path-identifier pair needs to be used for all subsequent OptiConnect APIs that are used to control communications on the remote system.

Program library name. The program library name on the remote system in which the program is contained.

Stream identifier. The OptiConnect stream that is to be used for communications. This field is provided as output on the Open Stream (QzdmOpenStream) API.

The stream identifier is associated with the path identifier that is provided as output, as a stream-identifier and path-identifier pair. For most applications, this stream-identifier and path-identifier pair needs to be used for all subsequent OptiConnect APIs that are used to control communications on the local system.


Error Messages

Message ID Error Message Text
CPF24B4 E Severe error while addressing parameter list.
CPF3C1D E Length specified in parameter &1 not valid.
CPF3C21 E Format name &1 is not valid.
CPF3C90 E Literal value cannot be changed.
CPF3CF1 E Error code parameter not valid.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.
CPFADF0 E The OptiConnect QSOC subsystem must be active.
CPFADF1 E OptiConnect communication error.
CPFADF2 E OptiConnect path open error.
CPFADF5 E OptiConnect API internal error, function code &1, return code &2.
CPFADF6 E Request variable not valid, reason code &1.
CPFADF7 E OptiConnect API open path error, function code &1, return code &2.
CPFADF8 E Program name not found.
CPFADF9 E Program library name not found.
CPFADFA E User not authorized to program.
CPFADFB E Open path rejected.
CPFADFD E Remote system &1 not found or not valid.


API introduced: V3R7

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