TDSETSOI

Description

Sets the Shift Out/Shift In (“SO/SI”) processing options for a column or parameter.

NoteThis function is used with the Japanese Conversion Module (JCM).

Syntax

%INCLUDE SYGWPLI;
01 TDPROC        PTR,
01 RETCODE       FIXED BIN(31),
01 OBJECT_TYPE   FIXED BIN(31),
01 OBJECT_NUMBER FIXED BIN(31),
01 STRIP_SOSI    FIXED BIN(31);
CALL TDSETSOI (TDPROC, RETCODE, OBJECT_TYPE,
                OBJECT_NUMBER, STRIP_SOSI); 

Parameters

TDPROC

(I) Handle for this client/server connection. This must be the same value specified in the associated TDACCEPT call. The TDPROC handle corresponds to the connection and command handles in Open Client Client-Library.

RETCODE

(O) Variable where the result of function execution is returned. Its value is one of the codes listed in Table 3-35.

OBJECT_TYPE

(I) Indicator for type of object being set. This argument indicates whether the object being described is a column in a return row or a return parameter.

Assign this argument one of the following values:

TDS_OBJECT_COL (1)

Object is a column in a return row.

TDS_OBJECT_PARM (2)

Object is a return parameter.

OBJECT_NUMBER

(I) Number of the column or parameter being set.

If the object is a column, this is the number of the column with the SO/SI option that is being set. Columns are numbered sequentially; the first column in a row is number 1.

If the object is a parameter, this is the number of the parameter with the SO/SI option that is being set. All parameters are counted, whether or not they are return parameters. Parameters are numbered sequentially; the first parameter is number 1.

STRIP_SOSI

(I) The SO/SI processing option being set for this column or parameter.

Assign STRIP_SOSI one of the following values:

TDS_STRIP_SOSI (0)

SO/SI codes are stripped at the mainframe before being sent to the client. This is the default.

TDS_BLANK_SOSI (1)

SO/SI codes are converted to blanks before being sent to the client. The length of the object does not change.

Returns

The RETCODE argument can contain any of the return values in Table 3-35.

Table 3-35: TDSETSOI return values

Return value

Meaning

TDS_OK (0)

Function completed successfully.

TDS_ENTRY_NOT_FOUND (-8)

The specified column number, transaction number, or parameter does not exist.

TDS_INVALID_FLAGS (-176)

Invalid padding option for a field.

TDS_INVALID_PARAMETER (-4)

Invalid parameter value. The value assigned to one or more of the arguments supplied in the call is not valid. The operation failed.

TDS_INVALID_TDPROC (-18)

Error in specifying a value for the TDPROC argument.

Usage


TDSETSOI

Use this function to specify whether SO/SI codes are stripped or converted to blanks for a specified column or parameter before results are returned to the client.

See also

Related functions

Related topics