Calling COBOL on z/OS IMS from REST

In IMS there are two styles of programs: message processing programs (MPP) and batch message processing programs (BMP). MPP programs can be called via IMS Connect.

graphics/zos-ims-solution.png

graphics/blue_1.gif Extract the interface of the COBOL server program. See Using the IDL Extractor for COBOL - Overview.
graphics/blue_2.gif Generate REST resources, connection and adapter services in Integration Server.
graphics/blue_3.gif Execute the call from the REST client to the COBOL server program.

It is important to know whether your COBOL server runs in MPP (online transaction) mode or BMP (batch processing) mode. If you are unsure, consult a COBOL IMS specialist or see description of interface type in the IDL Extractor for COBOL documentation for details and examples: IMS MPP | IMS BMP.

When you are sure which programing style you are using, continue with the appropriate scenario:

  • MPP - online transactions (zero footprint using IMS Connect)

  • BMP - batch processing (using RPC Server for IMS)