Previous Topic: GetDBCSLengthNext Topic: DBCStoMF


DBCStoPC

Syntax
UINT DBCStoPC(HANDLE hDBCS, LPSTR sInBuffer, UINT nInBufferLen, LPSTR
	sOutBuffer, UINT nOutBufferLen, UINT fType, UINT * nLength)
Description

Converts the input buffer from EBCDIC to ASCII. The caller must allocate the output buffer and provide an output field for the converted length. Because CA IDMS Server always sets the DBCS_NULL_TERMINATED option to False, the DLL should not null terminate the converted data.

Arguments
hDBCS

Environment handle

sBuffer

Input buffer

nBufferLen

Input buffer length

nInBufferLen

Input buffer length

sOutBuffer

Output buffer

nOutBufferLen

Output buffer length

fType

SQL data type:

  • DBCS_CHAR (includes VARCHAR)
  • DBCS_GRAPHIC (includes VARGRAPHIC)
nLength

Buffer for converted length

Returns