Hi Abhiram,
From your screenshot, it seems you are trying to put the message using the MQ Console. The maximum message size you can put using the console is 1024 bytes.
To put 100MB messages, you need:
1) As Susan said, MAXMSGL(104857600) on three places: the Queue Manager, the Queue, and the SVRCONN Channel. For example:
ALTER QMGR MAXMSGL(104857600)
DEFINE QLOCAL('Q1') REPLACE DEFPSIST(NO) MAXMSGL(104857600)
DEFINE CHANNEL(QM8CHL) CHLTYPE(SVRCONN) REPLACE TRPTYPE(TCP) SSLCAUTH(REQUIRED) SSLCIPH('ANY_TLS12_OR_HIGHER') MAXMSGL(104857600)
2) A client program capable of putting 100MB messages. None of the provided samples can put 100MB. I modified the JMS Put Sample (JmsPut.java):
char[] chars = new char[104857600]; // to put 100MB
Arrays.fill(chars, 'a'); // to put 100MB
String str = new String(chars); // to put 100MB
// long uniqueNumber = System.currentTimeMillis() % 1000; // to put 100MB
TextMessage message = context.createTextMessage(str); // to put 100MB
3) If your messages are persistent, a large enough file system for the MQ log. On my system, I got this error:
MQRC 2102 (Resource problem)
AMQ7463E: The log for queue manager QM8 is full.
(I managed to put 100MB non-persistent messages, but this may not be a good idea for you if your application requires persistence.)
Regards,
PS. This is a very good article. It is not specific to CP4I, but the general principles apply: "Instructions and Warnings: How to increase the MAXMSGL for MQ Queue Managers, Queues and Channels from the default 4 MB to a higher number"
https://www.ibm.com/support/pages/node/400151------------------------------
Emir Garza
------------------------------
Original Message:
Sent: Tue August 02, 2022 02:11 AM
From: Abhiram Emmadishetty
Subject: Increase Queue application data length on CP4I
Hi,
We are trying to put the application data inside the message queue and increased the message length as 104857600(100MB). Still the application data showing is 1024 only.
We are unable to put the complete message in queue.
Kindly, give us the resolution.

------------------------------
Abhiram Emmadishetty
------------------------------