infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
MQ grouping records
Jason Laskowski
Has anyone used the MQGMO_ALL_MSGS_AVAILABLE and MQGMO_LOGICAL_ORDER settings to read in multiple MQ records of a unique group ID?
I have seen examples in Java but how would we read in the group in Cloverleaf so that we can then do the xlate on the entire data in the group?
Find more posts tagged with
Clovertech
Comments
Jason Laskowski
When I try to read in a group that I created with a sample Java program, I get this error in Cloverleaf:
QMGT(QMGT.WM01) MQGET MQCC_FAILED(2256:MQRC_WRONG_GMO_VERSION)
Peter Heggie
The wrong GMO version number is referring to one of the fields in the header of the options block. It should be version 2 (of the MQ software). Not sure if this is a bug.
You should be able to combine GMO_LOGICAL_ORDER and GMO_ALL_MSGS_AVAILABLE, at least you can in most implementations of WMQ.
In languages like COBOL you must explicitly set the GMO_VERSION, but I don't know if Cloverleaf does this for you or if you have to set this.
Also you must set the group_id value - it does not automatically retain the value from the first Get and then use it for the next Get, you must set it before the Get. You could do the first Get without it set, save that value and then set the GROUP_ID to that value for all subsequent Gets.
Having said all that, with all these options set, you would still get one Cloverleaf msg per MQ msg, so if you want all the data in the group (gathered from multiple messages), you still need to collate the data from multiple messages. Maybe you could write all these to an outbound thread that writes to a file with the append option.