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: 1216
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 All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Design for Message Trapping and WTO N... All Other Mainframe Topics 2
No new posts DB2 Image Copy DFSMS MGMTCLAS Partial... DB2 2
No new posts Message Security Assist extension 7 a... PL/I & Assembler 2
No new posts Is this possible via sort (in one pass)? SYNCSORT 4
No new posts omegamon for cics -UNSUPPORTED ENVIRO... CICS 2
Search our Forums:


Back to Top