ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENGTH_N

Post new topic  Reply to topic
 We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENGTH_N « View previous topic :: View next topic » 
Author Message
manihew
PostPosted: Fri Jun 11, 2010 10:33 pm    Post subject: We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENGTH_N Reply with quote

Newbie

Joined: 11 Jun 2010
Posts: 2

Question : Can you please provide me a sample MQ IIH Header + llzztrancodedata ??

This is the Message i am using

IIH 116400MQIMSVS 0 MODU03 MQIMSVS 0000000000000000 0C 150DCV920 test

where the llzztrancodedata = 150DCV920 test

i am getting this error MQFB_DATA_LENGTH_NEGATIVE & MQFB_IIH_ERROR
Back to top
View user's profile Send private message
fatherjack
PostPosted: Sat Jun 12, 2010 2:13 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

Here's what the IIH should look like
Code:

  MQCHAR4   StrucId;         /* Structure identifier */
  MQLONG    Version;         /* Structure version number */
  MQLONG    StrucLength;     /* Length of MQIIH structure */
  MQLONG    Encoding;        /* Reserved */
  MQLONG    CodedCharSetId;  /* Reserved */
  MQCHAR8   Format;          /* MQ format name of data that follows MQIIH */
  MQLONG    Flags;           /* Flags */
  MQCHAR8   LTermOverride;   /* Logical terminal override */
  MQCHAR8   MFSMapName;      /* Message format services map name */
  MQCHAR8   ReplyToFormat;   /* MQ format name of reply message */
  MQCHAR8   Authenticator;   /* RACF password or passticket */
  MQBYTE16  TranInstanceId;  /* Transaction instance identifier */
  MQCHAR    TranState;       /* Transaction state */
  MQCHAR    CommitMode;      /* Commit mode */
  MQCHAR    SecurityScope;   /* Security scope */
  MQCHAR    Reserved;        /* Reserved */

_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Jun 12, 2010 7:19 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

MQIIH is a structure. WMQ structures are documented in the WMQ Application Programming Reference manual.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sat Jun 12, 2010 3:00 pm    Post subject: Re: We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENG Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

manihew wrote:
This is the Message i am using

IIH 116400MQIMSVS 0 MODU03 MQIMSVS 0000000000000000 0C 150DCV920 test


Its not possible to show us a valid message with an IIH header as a character string because the IIH contains binary data. A hex dump maybe...
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Jun 12, 2010 4:52 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Or, show us the code that creates the IIH.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
manihew
PostPosted: Mon Jun 21, 2010 1:42 am    Post subject: I am getting this Error : MQFB_DATA_LENGTH_NEGATIVE Reply with quote

Newbie

Joined: 11 Jun 2010
Posts: 2

I had written a .Net Program for writing a message to MQ --> IMS Bridge

Here is the summary for MQ IIH

/// MQ IIH Header for MQ - IMS Bridge conversation
/// Field Name : StrucId         Value : MQIIH_STRUC_ID Bytes : 4
/// Field Name : Version     Value : MQIIH_VERSION_1 Bytes : 4
/// Field Name : StrucLength   Value : MQIIH_LENGTH_1 Bytes : 4
/// Field Name : Encoding     Value : 0 Bytes : 4
/// Field Name : CodedCharSetId Value : 0 Bytes : 4
/// Field Name : Format        Value : MQFMT_IMS_VAR_STRING Bytes : 8
/// Field Name : Flags          Value : MQIIH_NONE Bytes : 4
/// Field Name : LTermOverride Value : Blanks Bytes : 8
/// Field Name : MFSMapName    Value : Blanks Bytes : 8
/// Field Name : ReplyToFormat  Value : MQFMT_IMS_VAR_STRING Bytes : 8
/// Field Name : Authenticator  Value : MQIAUT_NONE Bytes : 8
/// Field Name : TranInstanceId Value : MQITII_NONE Bytes : 16
/// Field Name : TranState     Value : MQITS_NOT_IN_CONVERSATION Bytes : 1
/// Field Name : CommitMode    Value : MQICM_COMMIT_THEN_SEND Bytes : 1
/// Field Name : SecurityScope  Value : MQISS_CHECK Bytes : 1
/// Field Name : Reserved     Value : Blanks Bytes : 1
/// ------------------------------------------------------------------------------
/// Total Bytes : 84


Data :

LL = 252 (data length) + 4 = 256
ZZ = 0
data = Trancode << Input data >> (total Length : 252)

I saw your previous post on LL should be a binary data. which i did use
in this code

LL in MQ shows (HEX) ( 00 01 )

After writing the message in the Queue, i could see a Dead Letter Queue message for this corresponding message with the error stating Data Length Negative.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENGTH_N
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.