Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: Iam getting a negative error when passing from MQ to .Net
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jun 21, 2010 5:21 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us