Translate Data Stream (QD0TRNDS) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Translate Data Stream (QD0TRNDS) API translates data from one format to another format. The data formats depend on the parameter values you specify.


Authorities and Locks

None.


Required Parameter Group

Translation session handle
INPUT; CHAR(16)

The name of the translation session. This name is returned to your application following the call to the QD0STRTS API.

To buffer
OUTPUT; CHAR(*)

The buffer used to contain the output of the data stream translation. This value should be large enough to contain the expected results.

To buffer output length
OUTPUT; BINARY(4)

The length of the translated data that is placed in the to buffer parameter.

To buffer length
INPUT; BINARY(4)

The length of the buffer that is available for output.

To buffer type
INPUT; CHAR(10)

The type of data to be put into the to buffer parameter. The possible values are:

See Valid Parameter Combinations for a list of the allowable combinations of this parameter with the operations and from buffer type parameters.

From buffer
INPUT; CHAR(*)

The buffer that contains the data to be translated.

From buffer length
INPUT; BINARY(4)

The length of the data contained in the from buffer parameter.

From buffer type
INPUT; CHAR(10)

The type of data that is contained in the from buffer parameter. The possible values are:

See Valid Parameter Combinations for a list of the allowable combinations of this parameter with the operations and to buffer type parameters.

Operation
INPUT; CHAR(1)

Indicates whether the data to be translated is input or output data. You can specify the following values:

See Valid Parameter Combinations for a list of the allowable combinations of this parameter with the to buffer type and from buffer type parameters.

Error code
I/O; CHAR(*)

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

The following table lists the valid combinations of the from buffer type, to buffer type, and operations parameters.

Valid Parameter Combinations



Error Messages



API introduced: V2R2

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