Home
C invocation
MQXCNVC (Hconn, Options, SourceCCSID, SourceLength, SourceBuffer, TargetCCSID, TargetLength, TargetBuffer, &DataLength, &CompCode, &Reason);Declare the parameters as follows:
MQHCONN Hconn; /* Connection handle */ MQLONG Options; /* Options that control the action of MQXCNVC */ MQLONG SourceCCSID; /* Coded character set identifier of string before conversion */ MQLONG SourceLength; /* Length of string before conversion */ MQCHAR SourceBuffer[n]; /* String to be converted */ MQLONG TargetCCSID; /* Coded character set identifier of string after conversion */ MQLONG TargetLength; /* Length of output buffer */ MQCHAR TargetBuffer[n]; /* String after conversion */ MQLONG DataLength; /* Length of output string */ MQLONG CompCode; /* Completion code */ MQLONG Reason; /* Reason code qualifying CompCode */
Home