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

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.

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.

Advertisements

Author: Srini

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