A quick caveat: I am a .Net developer and may not have provided all the environmental information you need, but I can get information on request. We have COBOL programmers, but they never did.
We are converting a mainframe application with a DB2 database into a .Net MVC application with an SQL database. There is one universal COBOL batch program that we would like to call from the COBOL stored procedure in DB2. I read that this can be done, but I did not find a good example of creating a COBOL stored procedure that calls the COBOL program. The COBOL batch program accepts about 5 input parameters, but returns nothing.
We already have a linked server that we use to invoke the built-in SQL stored procedures in DB2 from the SQL server.
Edited for future use below.
We looked at two ways to solve our problem: creating a COBOL stored procedure that can be used by a DB2 mainframe running on z / os, where we copy / paste our COBOL from the CICS program and configure it to run as a stored procedure (thus cutting out CICS completely) or by using CICS to host the web service endpoint that might invoke the CICS program we wanted to invoke, as described in slide 21 of this PowerPoint .
We decided to move forward with the second option, because there is a precedent for this already, so it will be an easier way for us.