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: 8700
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 All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts U0016 error in JCL JCL & VSAM 4
No new posts python on z/OS error no encoding decl... Testing & Performance 0
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts Passing containers on START command CICS 4
Search our Forums:


Back to Top