IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is value can i pass to message options (MQGMO-OPTIONS)


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Naga Rajender.K

New User


Joined: 19 Dec 2008
Posts: 13
Location: Hyderabad

PostPosted: Tue Apr 21, 2009 12:28 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Apr 21, 2009 2:14 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
Search our Forums:

Back to Top