Original Message:
Sent: Mon September 18, 2023 12:47 PM
From: Luc-Michel Demey
Subject: mqclient.ini on IBM i
Hello,
The tests have just been successfully completed:
creation of a file named mqclient.ini in the iSeries IFS in /QIBM/UserData/mqm/. Contents of this file:
---
CHANNELS:
DefRecon=YES
---
- ON iSeries, export at job-level of variable MQCLNTCF :
ADDENVVAR ENVVAR(MQCLNTCF) VALUE('/QIBM/UserData/mqm/mqclient.ini') REPLACE(*YES)
- Start iSeries MQ Client application
- Switch the Queue Manager from A to B
- MQ Client iSeries application reconnects to B.
Thank you all for your advice.
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
#IBMChampion
Original Message:
Sent: Fri September 08, 2023 12:22 PM
From: Luc-Michel Demey
Subject: mqclient.ini on IBM i
Sorry @Morag, I hadn't taken a good look at your link page, but it does say MQCLNTCF.
Thanks @Mayur for the clarification.
It's always reassuring to know that someone is interested in the accuracy of the documentation and acts to complete it if necessary.
I won't be able to test with an MQ iSeries client until the end of next week, but I'll keep you posted on the results.
Thanks to all.
------------------------------
Luc-Michel Demey
Technical Architect
Demey-Consulting.fr
Le Perreux sur Marne
Original Message:
Sent: Fri September 08, 2023 03:21 AM
From: Mayur RAJA
Subject: mqclient.ini on IBM i
FYI, we document examples of environment variables here: https://www.ibm.com/docs/en/ibm-mq/9.3?topic=reference-environment-variables where the syntax of ADDENVAR and the MQCLNTCF variable can be seen. However, I think it would be good for us to add the ADDENVAR details to the section on 'location of the client configuration file' that Morag highlights. Currently, bullet 1 in point 3. of this section states:
The IBM MQ data directory does not exist on certain platforms, for example, IBM i and z/OS®, or in cases where the client has been supplied with another product.
But it does not state that there is no default mqclient.ini file on IBM i and that you need to create one and point MQCLNTCF to it.
I do not work on IBM MQ for IBM i so I cannot confirm that this works as expected. Once you have tried setting the MQCLNTCF environment variable, I'd appreciate it if you can confirm if it works as expected please ? Then I'll request MQ authors to update the MQ docs. It will help other customers in the future. Ideally, I should try to find someone in the Lab who has access to an IBM i system, but so long as you do not mind, it would also be good for me to know that this works in a customer environment. Thank you.
------------------------------
Mayur RAJA
Original Message:
Sent: Thu September 07, 2023 06:31 PM
From: Morag Hughson
Subject: mqclient.ini on IBM i
Have a good old read of the link in my previous answer. The environment variable is called MQCLNTCF
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Thu September 07, 2023 12:34 PM
From: Luc-Michel Demey
Subject: mqclient.ini on IBM i
Hello Morag,
I had indeed seen that there is no default mqclient.ini file for the IBM i.
Using ADDENVVAR is an interesting idea, but what variable should I use?
If I look at AMQ_MQS_INI_LOCATION, the documentation says :
[AIX][Linux]AMQ_MQS_INI_LOCATION
On AIX and Linux systems, you can alter the location that is used for the mqs.ini file by setting the location of the mqs.ini file in this variable. This variable must be set at the system level.
Thank you in advance for your reply.
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
#IBMChampion
Original Message:
Sent: Thu September 07, 2023 01:10 AM
From: Morag Hughson
Subject: mqclient.ini on IBM i
I think you are asking where the "default" mqclient.ini file might be on the IBM i platform? I don't think there is one. See Location of the client configuration file
However, you can just make one and put it wherever you need it to be and then point to it with an environment variable (ADDENVVAR).
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Wed September 06, 2023 11:35 AM
From: Luc-Michel Demey
Subject: mqclient.ini on IBM i
Hello,
I'm looking to add the lines
CHANNELS:
DefRecon=YES
to the mqclient.ini file of an MQ client.
But this MQ client is the iSeries one.
I can't find any reference in the documentation to possible locations for this file.
Any ideas?
Thank you for your help.
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
#IBMChampion
------------------------------