|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Buffer |
« View previous topic :: View next topic » |
Author |
Message
|
Dilrukshi |
Posted: Mon May 20, 2002 4:02 am Post subject: Message Buffer |
|
|
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 |
|
 |
mqonnet |
Posted: Mon May 20, 2002 5:00 am Post subject: |
|
|
 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 |
|
 |
Cliff |
Posted: Mon May 20, 2002 6:29 am Post subject: |
|
|
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 |
|
 |
Dilrukshi |
Posted: Mon May 20, 2002 8:21 pm Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Tue May 21, 2002 3:57 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|