IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Iam getting a negative error when passing from MQ to .Net


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Mon Jun 21, 2010 4:25 pm
Reply with quote

Hai,

Iam currently working on a project for passing the data from .Net to MQ series.


Iam passing the data with the following data.

1. IIH header data.
2. LL field.
3. ZZ field
4. Data for the header.

I have converted the LL field to Big endian to little endian , since Iam sending the data from .NEt application to Mainframe application.

My data is 252 bytes and Iam have added 4 bytes to the lenght field(LL). Since LL and ZZ are 2 bytes binary.

So the total record length is 256 . and equivalent hexa decimal value is 0100 and I have tried all the four combinations

0100
1000
0010
0001

But Iam getting the same length error for all the same. (MQFB_DATA_LENGTH_NEGATIVE).

Could any one please let us know how to solve the issue.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 21, 2010 5:21 pm
Reply with quote

I don't have MQ at my site but from what I've heard, the segment length is 32 bits so you should be passing X'00000100' to indicate a length of 256.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top