VSCCSID (MQLONG)

This is the character set identifier of the variable length string addressed by the VSPtr or VSOffset field.

The initial value of this field is MQCCSI_APPL, which is defined by MQ to indicate that it should be changed to the true character set identifier of the current process. As a result, the value of constant MQCCSI_APPL is never associated with a variable length string.

The initial value of this field can be changed by defining a different value for the constant MQCCSI_APPL for the compile unit. How you do this depends on the application's programming language.

On z/OS systems, the default application CCSID used by MQCCSI_APPL is defined as follows:

  • For batch LE applications using the DLL interface, the default is the CODESET associated with the current locale at the time MQCONN is issued (default value is 1047).
  • For batch LE applications bound with one of the batch MQ stubs, the default is the CODESET associated with the current locale at the time of the first MQI call issued after MQCONN (default value is 1047).
  • For batch non-LE applications running on a USS thread, the default is the value of THLICCSID at the time of the first MQI call issued after MQCONN (default value is 1047).
  • For other batch applications, the default is the CCSID of the queue manager.

Parent topic: Fields for MQCHARV