TSO-ISPF JCL COBOL VSAM DB2 CICS Tools Articles Job Portal Forum Quiz Interview Q&A

CICS CALL Control Command


CICS CALL Command:

To perform a COBOL Call from one CICS program to another COBOL program.

The called program must be link edited with the calling program. If many programs are calling the same program, this will result in more memory occupation.

Program can be called in two ways:

  1. Static Call

  2. Dynamic Call


Static CALL:

A statically called program does not require to be registered in PPT.

cics static call command

The Caller and the Called Program must be link-edited together into a single load module.


Dynamic CALL:

The dynamic call is available only in VS-COBOL II and CICS 2.1 or later. Dynamically called programs are separate load modules and are therefore shareable by multiple callers. During execution, CICS will dynamically load the called program.

cics dynamic call command

The dynamically called program requires to be registered in PPT.


Passing Data in CALL:

This is an example of COBOL program using a static call. The format described for passing parameters holds true for dynamic calls as well.

  • The first two parameters in the CALL must be DFHEIBLK and DFHCOMMAREA (in that order), and then user defined variables will follow.

  • The translator always inserts DFHEIBLK in the LINKAGE SECTION.

  • The called program should issue a GOBACK to return to caller.


Important CICS Interview Question:

Difference between CALL and XCTL/LINK?
CALLXCTL/LINK
The CALL’ed program is Link edited along with the main module. The XCTLed/LINKed program(s) is separately compiled and link edited.
Higher module size and higher memory requirement Dynamic loading may slow down execution speed
Any changes in the CALL’ed program require compiling of all other modules using the CALL’ed program Changes in XCTLed/LINKed program(s) will not affect other modules using this


If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal