Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8200
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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us