Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MQ Series: setting up MQGMO options

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
aknatva

New User


Joined: 21 May 2009
Posts: 6
Location: hyderabad

PostPosted: Tue May 26, 2009 5:06 pm    Post subject: MQ Series: setting up MQGMO options
Reply with quote

Hi,

When we want to setup a couple of get message options, the code in the sample programs I got is as follows.

Compute MQGMO-Options = MQGMO_ACCEPT_TRUNC_MSGS +
MQGMO_WAIT

Add MQGMO_CONVERT to MQGMO_OPTIONS

Add MQGMO_SYNCPOINT to MQGMO_OPTIONS

I found in IBM manuals that all the MQGMO options are the integer numbers, which are powers or 2. ( like 2, 4, 8, 16 etc.,)

I am assuming that by adding any of these numbers, we should only get a unique number, and MQ should be able to resolve that unique number into a combination of options

But, the MQGMO_CONVERT is always added separately in all my sample programs. Can any one please explain the reason why MQGMO_CONVERT is added separately. Essentially, COMPUTE & ADD verbs should work similarly.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed May 27, 2009 9:08 am    Post subject: Reply to: MQ Series: setting up MQGMO options
Reply with quote

Hello,

Do not post the same question multiple times.

The duplicate has been removed.

d
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Wed May 27, 2009 2:39 pm    Post subject:
Reply with quote

i think it's not integer, it's binary. if you look at CMQV and CMQGMOV copybooks in %SYS%.MQM.SCSQCOBC you will get some idea.

Code:

MQGMO-CONVERT   PIC S9(9) BINARY VALUE 16384.


Code:

** MQGMO structure                               
 10  MQGMO.                                       
** Structure identifier                           
 15  MQGMO-STRUCID PIC X(4) VALUE 'GMO '.         
** Structure version number                       
 15  MQGMO-VERSION PIC S9(9) BINARY VALUE 1.     
** Options that control the action of MQGET       
 15  MQGMO-OPTIONS PIC S9(9) BINARY VALUE 0.     
** Wait interval                                 
 15  MQGMO-WAITINTERVAL PIC S9(9) BINARY VALUE 0.
** Pointer to signal                             
 15  MQGMO-SIGNAL1 POINTER VALUE NULL.           
** Signal identifier                             
 15  MQGMO-SIGNAL2 PIC S9(9) BINARY VALUE 0.     


and it shouldn't matter whether we add CONVERT separately or at one time. Effectively it is not like adding (mathematically), it's like adding options in a single basket (switching on options) before doing MQGET.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Unload format options Susanta DB2 2 Fri Aug 12, 2016 5:42 pm
No new posts XFACILIT class setting for Fault Anal... egrove IBM Tools 2 Thu Aug 11, 2016 8:02 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm
No new posts Setting up a new trigger krisprems DB2 4 Thu Dec 24, 2015 10:33 pm
No new posts character setting configuration into ... sakthikumarT DB2 5 Thu Nov 05, 2015 11:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us