Redefinition of MQCCSI_APPL

The following examples show how we can override the value of MQCCSI_APPL in various programming languages. We can change the value of MQCCSI_APPL, removing the need to set the VSCCSID for each variable length string separately.

In these examples the CCSID is set to 1208; change this to the value you require. This becomes the default value, which we can override by setting the VSCCSID in any specific instance of MQCHARV.


C usage

#define MQCCSI_APPL 1208
#include <cmqc.h>


COBOL usage

COPY CMQXYZV REPLACING -3 BY 1208.


PL/I usage

%MQCCSI_APPL = '1208';
%include syslib(cmqp);


System/390 assembler usage

MQCCSI_APPL EQU 1208
CMQA LIST=NO
Parent topic: MQCHARV - Variable Length String