Skip to Main Content

This is an IBM Automation portal for Integration products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (

Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.

Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal ( - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal ( - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM. - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Created by Guest
Created on Apr 8, 2022

cmqc.pas file need to align with IBM MQ 9.2

Problem Statement :

We are upgrading from IBM MQ 7.5 to IBM MQ 9.2 with code written in Delphi Programming language.

Which doing upgrade, following IBM MQ configuration added.

1. Username and Password to connect MQ

2. SSL Certification.

Analysis and Reference :

As per our analysis, Current written Delphi programming code "cmqc.pas" referencing 'MQIC.DLL' under IBM MQ 7.5 not working for IBM MQ 9.2

We might need to align records with upgraded versionof IBM MQ 9.2

For alignment, You can refer following IBM MQ team provided

Reference Link :

Sample Delphi code for MQ connection :-


function TmskMQQueueMgr.ConnectX : boolean;


MQMgrName: MQCHAR48;

ClientConn : MQCD;

Connect_Options : MQCNO;

SecOptions : MQCSP; //SMQ

UserName, Password : PWideChar;

strUserName, strPassword : string;


if FConnHandle <> 0 then


ClientConn:= MQCD_DEFAULT;

Connect_Options := MQCNO_DEFAULT;

SecOptions := MQCSP_DEFAULT;

strUserName := 'metsp';

strPassword := 'QaCTXsGnMCh5azuLrheu5?jL';

UserName := Addr(strUserName);

Password := Addr(strPassword);

SecOptions.CSPUserIdPtr := @UserName; //SMQ

SecOptions.CSPUserIdLength := StrLen(UserName);

SecOptions.CSPPasswordPtr := @Password ; //SMQ

SecOptions.CSPPasswordLength := StrLen(Password);

Connect_Options.SecurityParmsPtr := @SecOptions; //SMQ

SetMQString(MQMgrName, FQMgrName, SizeOf(MQMgrName));



Connect_Options.ClientConnPtr := @ClientConn;

Connect_Options.Version := MQCNO_VERSION_6;


if Assigned(FBeforeConnect) then


MQConnX(@MQMgrName,@Connect_Options,@FConnHandle, @FCompCode, @FReason);


if Assigned(FOnConnect) then




Result := Connected;



Please find cmqc.pas file attached with case for further analysis.

Analysis of problem :

According to us, we need to update cmqc.pas file with parameters feasible to MQ 9.2 and send it to MQConnX function

(with Username, Password & SSL certification option).

Where we used following parameters provided under cmqc.pas file

UserIdentifier:MQCHAR12; //* User identifier */

Password:MQCHAR12; //* Password */

and send it to "MQConnx" function, But it is not able to connect.

Following error coming


Please let us know , possible guidance to connect MQ Server with SSL certificate , Username & Password.

Idea priority High
  • Admin
    Mark Taylor
    Apr 26, 2022

    MQ has never had a product-provided Pascal MQI binding. There was a cat4 (third party owned) supportpac MA7Q that included these definitions, but it was not maintained by its owner to current levels and was eventually withdrawn/archived. We have no plans to extend the product with Pascal bindings and therefore this Idea is being declined.

    Since you already have a starting point for a pascal binding, it should just be necessary for you to define current versions of the MQCD, MQCNO, MQCSP, MQSCO structures. and there are various examples available for other languages on which fields you need to set for the secure connection. For example,