Sample program with MQSeries in COBOL. It shows how to implement MQSeries calls.

Sample MQSeries program

Here’s the way to use MQGET and MQPUT calls.

PROCEDURE DIVISION.
INPUT FILES.
CALL 'MQGET' USING HANDLE.
OPEN INPUT-FILE.
CLOSE INPUT-FILE.

OUTPUT FILES.

CALL 'MQPUT' USING HANDLE.
OPEN OUTPUT-FILE.
CLOSE OUTPUT-FILE.

3 responses

  1. […] are key MQSeries calls need to write in COBOL program. Read MQSeries with COBOL sample program. In this post you will learn how to write different calls in COBOL […]

    Liked by 1 person