Hi Wesley,

your message dumps are not showing the same things,

The first dump (from the client) shows the Put Message Options structure
(PMO) followed by the Message Descriptor structure (MD) and terminates
before it reaches the application data. An application program should not
normally expect to see the PMO and MD structures concatenated with the
data, although that may well be the way in which the data flows down the
client channel. I suspect that the client program may not be building the
message structure correctly. It looks as though it is putting a message
which contains the PMO and the MD in addition to the mesage data. Have you
tried using amqsputc to put the test message? That way you can prove that a
message can be put by a client program and end up readable on the queue,
alowing you to tell your VB programmer that the program is in their code,
not in MQSeries :-)

The second dump shows just the message data itself, without any extraneous
MQ material.

I hope this helps you to sort out what your program is looking at.

BTW, I am not a VB programmer, so it may be that the VB interface does
concatenate the structures like this. If that is the case, then your
program would need to decode the structures in order to locate the data.
(Note: I think that it is unlikely that VB would be doing this on its own).

In terms of the character set, both 819 and 437 are basically ASCII, with
minor variations which are usually not a problem, although you may wish to
invoke conversion in the MQGET on unix so that they will be handled
correctly.

Regards,

Neil Casey.


|---------+---------------------------->
|         |           Wesley Shaw      |
|         |           <[EMAIL PROTECTED]|
|         |           COM>             |
|         |           Sent by: MQSeries|
|         |           List             |
|         |           <[EMAIL PROTECTED]|
|         |           n.AC.AT>         |
|         |                            |
|         |                            |
|         |           21/11/2003 08:55 |
|         |           Please respond to|
|         |           MQSeries List    |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                          |
  |       To:       [EMAIL PROTECTED]                                                  
                    |
  |       cc:                                                                          
                          |
  |       Subject:  VB CLient to Solaris Queue Manager and CCSID problem               
                          |
  
>--------------------------------------------------------------------------------------------------------------|




My developer is trying to write a VB program to connect via a client to a
Sun Solaris 5.3 queue manager.  When the message is
received by the local queue, the content of the message is not readable or
at least looking at it with amqsbcg does not work.
It looks like the CCSID is wrong based on comparing to another message put
locally on the Sun box.
How should I suggest my programmer fix this problem?

VB Put MEssage:
Encoding : 546  CodedCharSetId : 437

00000000:  046E F202 504D 4F20 0100 0000 0000 0000 '.n�.PMO ........'
00000010:  FFFF FFFF 0000 0000 0000 0000 0000 0000 '��������............'
00000020:  0000 0000 2020 2020 2020 2020 2020 2020 '....            '
00000030:  2020 2020 2020 2020 2020 2020 2020 2020 '                '
00000040:  2020 2020 2020 2020 2020 2020 2020 2020 '                '
00000050:  2020 2020 2020 2020 2020 2020 2020 2020 '                '
00000060:  2020 2020 2020 2020 2020 2020 2020 2020 '                '
00000070:  2020 2020 2020 2020 2020 2020 2020 2020 '                '
00000080:  2020 2020 0000 0000 0000 0000 0000 0000 '    ............'
00000090:  0000 0000 0000 0000 0000 0000 4D44 2020 '............MD  '
000000A0:  0100 0000 0000 0000 0800 0000 FFFF FFFF '............��������'
000000B0:  0000 0000 2202 0000 0000 0000 4D51 5354 '....".......MQST'
000000C0:  5220 2020 FFFF FFFF 0200 0000 0000 0000 'R   ��������........'

amqsputc put message on Sun Box.

Encoding : 273  CodedCharSetId : 819
00000000:  4D4E 4443 4F30 3038 3931 5052 4F43 2020 'MNDCO00891PROC  '
00000010:  2043 4841 502D 5445 5354 2D33 3020 2020 ' CHAP-TEST-30   '
00000020:  2020 2020 2020 2020 2020 2020 2020 20   '                '

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive




Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to