Previous Topic: DBCSEndNext Topic: JDBC Programmer Reference


How CA IDMS Server Uses the API

CA IDMS Server calls the custom conversion DLL functions as follows:

DLL Function

Description

DBCSAlloc

Called before any other processing is done.

DBCSInit

Called after DBCSAlloc and before any other processing. CA IDMS Server passes the DBCS type, arbitrarily set to 1, and path specified on the CA IDMS International tab as parameters. These can be ignored.

SetDBCSOption

  • Called before DBCStoMF and DBCStoPC with the DBCS_KATAKANA option. False when Katakana is not enabled, and can be ignored.
  • Called before DBCStoPC with the DBCS_NULL_TERMINATE option. Always False, as the ODBC driver sets the null terminator on all character data.
  • Called before DBCStoPC with the DBCS_PAD_SPACES option. This option is 1 (TRUE) when the SQL data type is CHAR, 0 (FALSE) when it is VARCHAR.

GetDBCSLength

Called before DBCStoMF when the ASCII string is SQL syntax.

DBCStoPC

Called for each field converted from EBCDIC to ASCII.

DBCStoMF

Called for each field converted from ASCII to EBCDIC.

DBCSEnd

Called before unloading the DLL.