View previous topic :: View next topic
|
Author |
Message |
Naga Rajender.K
New User
Joined: 19 Dec 2008 Posts: 13 Location: Hyderabad
|
|
|
|
Hi,
I am developing cobol-mq program. I need to pass buffflen to MQGET call as input. From where should i get the value into this variable... Please help me out.
What is value can i pass to message options (MQGMO-OPTIONS)
Thanks in advance, |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
I need to pass buffflen to MQGET call as input. |
The BUFFLEN you specify should be large enough to hold the largest message you expect. If you specify MQGMO_ACCEPT_TRUNCATED MSG, it should be large enough to contain as much of the message as are prepared to process. If you don't specify MQGMO_ACCEPT_TRUNCATED_MSG and the buffer is too small, the DATALENGTH value is set so you can allocate a large enough buffer and re-issue the MQGET with that length.
There are many options you can specify in MQGMO-OPTIONS.
The fine manual is very helpful.
Garry. |
|
Back to top |
|
|
|