Version ( MQLONG)
The Version field specifies the highest version number that you can set for the structure.
MQCD_VERSION_1- Version 1 channel definition structure.
MQCD_VERSION_2- Version 2 channel definition structure.
MQCD_VERSION_3- Version 3 channel definition structure.
MQCD_VERSION_4- Version 4 channel definition structure.
MQCD_VERSION_5- Version 5 channel definition structure.
MQCD_VERSION_6- Version 6 channel definition structure.
MQCD_VERSION_7- Version 7 channel definition structure.
MQCD_VERSION_8- Version 8 channel definition structure.
MQCD_VERSION_9- Version 9 channel definition structure.
MQCD_VERSION_10- Version 10 channel definition structure.
MQCD_VERSION_11- Version 11 channel definition structure.
Version 11 is the highest that you can set the field to on IBM® MQ 8.0 on all platforms.
![[z/OS]](ngzos.gif)
MQCD_VERSION_12- Version 12 channel definition structure.
Version 12 is the highest that you can set the field to on IBM MQ 9.1.3.
MQCD_CURRENT_VERSION- The value set in
MQCD_CURRENT_VERSIONis the current version of the channel definition structure being used.The value of
MQCD_CURRENT_VERSIONdepends on the environment. It contains the highest value supported by the platform.MQCD_CURRENT_VERSIONis not used to initialize the default structures provided in the header, copy, and include files provided for different programming languages. The default initialization of Version depends on the platform and release.The
MQCDdeclarations in the header, copy, and include files are initialized toMQCD_VERSION_6. To use additionalMQCDfields, applications must set the version number toMQCD_CURRENT_VERSION. If you are writing an application that is portable between several environments, you must choose a version that is supported in all the environments.
MQCD structure is introduced, the layout of the existing part is not changed. The exit must check the version number. It must be equal to or greater than the lowest version that contains the fields that the exit needs to use.