Can a Called program execute a CALL statement that directly or indirectly calls the calling program. In other words is recursion allowed in the concept of CALL in COBOL program?
Printable View
Can a Called program execute a CALL statement that directly or indirectly calls the calling program. In other words is recursion allowed in the concept of CALL in COBOL program?
COBOL does not allow recursion in non-recursive main programs or subprograms. Recursive calls are only allowed if you code the RECURSIVE clause on the recursively invoked program's PROGRAM-ID paragraph
no ,recursion is not possible in cobol