|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
RFH2 in COBOL |
« View previous topic :: View next topic » |
Author |
Message
|
Kraven12 |
Posted: Wed May 29, 2002 5:46 am Post subject: RFH2 in COBOL |
|
|
Novice
Joined: 21 Oct 2001 Posts: 21
|
Currently having a problem generating a valid RFH2 header from COBOL. Has anybody else done this successfully in the past?
The error is reporting an unconvertable character. It appears to be saying the NameValueLength has a value of 1208 but that is actually the NameValueCCSID.
All fields line up correctly and all lengths are correct.
Any ideas/tips appreciated.
Thanks,
Dave |
|
Back to top |
|
 |
Ward |
Posted: Wed May 29, 2002 6:33 am Post subject: |
|
|
 Voyager
Joined: 27 Jun 2001 Posts: 98 Location: Europe
|
Hi,
Is your structlength a multiple of 4 ?
Cheers,
Ward. _________________ IBM Certified Solution Designer -- WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.0
----------------------------
Visit Boat Dimensions |
|
Back to top |
|
 |
Kraven12 |
Posted: Wed May 29, 2002 6:49 am Post subject: |
|
|
Novice
Joined: 21 Oct 2001 Posts: 21
|
Yes, the struclength is 132 which is a multiple 4.
Thanks. |
|
Back to top |
|
 |
wongcr |
Posted: Mon Jan 06, 2003 7:44 pm Post subject: |
|
|
Newbie
Joined: 06 Jan 2003 Posts: 1
|
actually, I think this is because the COBOL copybook for the RFH2 header is wrong - the member CMQRFH2V is missing the definition for namevaluelength. ie:
15 MQRFH-NAMEVALUELENGTH PIC S9(9) BINARY
(compare this with the MQ application programming reference, chapter 16 "RFH2" which explicitly mentions this field.
cheers
chris wong |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|