What is the purpose of the GLOBAL clause in COBOL for variable declarations?

  • It allows variables to be shared among multiple programs
  • It defines variables with global visibility
  • It enables dynamic memory allocation for variables
  • It restricts the scope of variables to the current program
The GLOBAL clause in COBOL is used to declare variables with global visibility, allowing them to be shared among multiple programs. This facilitates communication and data sharing between different program units.
Add your answer
Loading...

Leave a comment

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