CICS sub program these are the ways to call

You can call subprogram in CICS either with LINK are COBOL native CALL statement. In CALL statement you can use either static call or dynamic call.

Method-1

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

Why LINK

When CICS program defined in another region, and to CALL that program you can use LINK command

Method-2

You can call subrogram in CICS either using static or dynamic calls can be used when your sub program is defined as local.

Why CALL

When CICS module is defined in the same CICS region, you can use CALL statement to call sub-program.

Note: In both the cases, the sub program must be translated, if it contains CICS code.

In addition to above, which compiler option is good in COBOL

Always use NODYNAM compiler option.

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.