We all know that you can’t use a CCDT file with a client that is older than the CCDT version. For example, a version 6 client can’t understand what the channel definitions in a V8 produced CCDT mean.
How often have you had a CCDT file in your hand and wondered what version it was and whether you can give it to some of your known back-level client machines to use.
MQSCX can help you determine this. Open up your CCDT using the mqscx -n mode and then you can quite simply display the version number of all your client channels therein.
DISPLAY CHANNEL(*) VERSION CHANNEL(MQGEM.SVRCONN) CHLTYPE(CLNTCONN) VERSION(8.0) CHANNEL(MQGEM.SVRCONN.SSL) CHLTYPE(CLNTCONN) VERSION(9.0) CHANNEL(MQGEM.SVRCONN.ADMIN) CHLTYPE(CLNTCONN) VERSION(7.0)
Alternatively, you might like to write a little script that could iterate through all the channels in the table and tell you the minimum and maximum versions in use within that CCDT.
if (_ccdtmode) @minVer = 999999999 @maxVer = 0 foreach (DISPLAY CHANNEL(*) VERSION) if (VERSION < @minVer) @minVer = VERSION endif if (VERSION > @maxVer) @maxVer = VERSION endif endfor if (_numEach) print "Channel version in",_ccdt print "Minimum:",@minVer,"Maximum:",@maxVer else print "No channels found in",_ccdt endif else print "Run this script with MQSCX in CCDT mode" endif
Running this against a multi-version CCDT might produce output such as:-
Channel version in C:\MQGem\CCDT\MQGEM101.TAB Minimum: 7.00 Maximum: 9.00
This type of CCDT analysis is possible due to the recent addition of the foreach construct to the CCDT processing in MQSCX.
If you are a current MQSCX licence holder, you can simply download the new version of MQSCX and start using it. If you’re not a current licence holder, and you’d like to try out MQSCX, please email firstname.lastname@example.org to request a trial licence.