If the sub program is defined as “remote”,then, you may use Link command to call your sub program.
Syntax to call
Exec CICS Link PROGARM ("program-name") End-Exec
Static and Dynamic calls can be used when your sub program is defined as local.
Note: In both the cases, the sub program must be translated, if it contains CICS code.
Always us NODYNAM compiler option. Because stored procedures use CAF, you must also compile COBOL stored procedures with the NODYNAM option.
- Db2-How to Access CICS from Db2 Stored Proc? (srinimf.com)
- DB2 Stored Proc from CICS-How? (srinimf.com)