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 » How to put data > 4 in MQMD.ApplOriginData field?

Post new topic  Reply to topic
 How to put data > 4 in MQMD.ApplOriginData field? « View previous topic :: View next topic » 
Author Message
BergerC
PostPosted: Mon Jul 26, 2004 1:55 pm    Post subject: How to put data > 4 in MQMD.ApplOriginData field? Reply with quote

Novice

Joined: 08 Apr 2002
Posts: 15

We're attempting to send a file name along with a message (potentially rather long), and the application is using the Java Classes for MQ. We keep getting the JDE error that this field is FINAL, and can't be set.

However the MQ documentations states that "This is an output field for the MQGET call. The length of this field is given by MQ_APPL_ORIGIN_DATA_LENGTH. The initial value of this field is the null
string in C, and 4 blank characters in other programming languages."

The term "initial value", along with the concept that you would query the length of the field, leads me to believe it's variable. BUT - I typically think of the MQMD as fixed length.

Does anyone know if this can be set to a length > 4 bytes?

Thanks very much for any feedback or direction.
_________________
_____________
Chris
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Jul 26, 2004 2:03 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

The "initial value" is what the field will contain if you create a "default" MQMD and do not populate the field in your code.

Yes, it is fixed length, of 4 characters. The field MQ_APPL_ORIGIN_DATA_LENGTH is a constant, value 4.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » How to put data > 4 in MQMD.ApplOriginData field?
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.