In COBOL, what is the purpose of the CALL statement when invoking a subprogram?

  • To allocate storage for variables
  • To declare a variable as a parameter
  • To define a recursive subroutine
  • To transfer control to another program or subprogram
The CALL statement in COBOL is used to transfer control from one program or subprogram to another. It allows programs to modularize code by invoking separate subprograms, improving code readability and maintainability.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *