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 » General Discussion » Message Buffer

Post new topic  Reply to topic
 Message Buffer « View previous topic :: View next topic » 
Author Message
Dilrukshi
PostPosted: Mon May 20, 2002 4:02 am    Post subject: Message Buffer Reply with quote

Apprentice

Joined: 28 Apr 2002
Posts: 29

Hai ,
While doing an MQGET or MQPUT in OS/390 should the message BUFFER be of pic x()
Can it be pic 9()? Thatis can the message buffer be declared as numeric or comp ?

Thanks in advance
_________________
Dil
Back to top
View user's profile Send private message
mqonnet
PostPosted: Mon May 20, 2002 5:00 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Buffer is always Char data. It may contain though, numeric or non-numeric data.

Cheers.
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cliff
PostPosted: Mon May 20, 2002 6:29 am    Post subject: Reply with quote

Centurion

Joined: 27 Jun 2001
Posts: 145
Location: Wiltshire

Essentially, the buffer is just a bit string as far as MQ is concerned - on the MQPUT for example, you pass the buffer by address and tell MQ the length of the data starting at that address. On the MQGET, the buffer just has to be an area big enough to hold the bitstream of the message. What you do with it AFTER that is up to you.

However, as Kumar says, always make the buffer a char string and you will not go wrong.

Cheers - Cliff
Back to top
View user's profile Send private message Send e-mail
Dilrukshi
PostPosted: Mon May 20, 2002 8:21 pm    Post subject: Reply with quote

Apprentice

Joined: 28 Apr 2002
Posts: 29

Thanks for all ur help
What will happen if i define the Buffer as PIC 9(9)v99 comp ?

Thanks
_________________
Dil
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue May 21, 2002 3:57 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

The data may not get converted properly on the other side if you use comp. Much safer and easier in the long run to move all your comp fields into Pic X fields, then MQPUT.
_________________
Peter Potkay
Keep Calm and MQ On
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 » General Discussion » Message Buffer
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.