Hallo Zusammen,

wir haben ein Europaprojekt und ich muss sowohl Latin1 als auch Latin2 verarbeiten können.
Die Datenbanken der Folgeverarbeitung sind bereits in der Lage, beides zu verarbeiten, es besteht jetzt "nur" noch die Herausforderung, die MQ-Message entsprechend zu verarbeiten.

Der Kollege, der mir die Nachrichten schickt, schreibt dazu folgendes:

Browse the first message
Check what CodedCharSetId is set on the MQMD
If 819 then do the real get with conversion to EBCDIC 273
If 912 then do the real get with conversion to EBCDIC 870
For safety on the second GET, you should select the message using the MessageId from the browsed message, so that you are sure to get the same message (eg in case of multiple jobs reading the queue).

Im Quellcode ILE COBOL ist der MQGET heute ohne jegliche Abfrage:

CALL "MQGET" USING HCONN
Q-HANDLE
MESSAGE-DESCRIPTOR
GMOPTIONS
BUFFER-LENGTH
BUFFER
DATA-LENGTH
COMPLETION-CODE
REASON
END-CALL.

Hat jemand Erfahrung oder ein Beispiel, wie ich das umsetzen könnte?

Viele Grüße,

Sabine