If the sub program is in remote, we use Link command
Exec CICS Link
Static and Dynamic call will be used when the sub program is in local.
Note: In both the cases, the sub program must be translated if it contains CICS code.
Always us NODYNAM compiler option.
- Db2-How to Access CICS from Db2 Stored Proc? (srinimf.com)
- DB2 Stored Proc from CICS-How? (srinimf.com)