Making recursive calls
A called program can directly or indirectly execute its caller. For example, program X calls program Y, program Y calls program Z, and program Z then calls program X. This type of call is recursive.
About this task
To make a recursive call, you must code the
RECURSIVE
clause in the PROGRAM-ID
paragraph of the recursively
called program. If
you try to recursively call a COBOL program that does not have the RECURSIVE
clause in the
PROGRAM-ID
paragraph, the run unit will end abnormally.