You are working on a complex COBOL project with multiple programs. Which clause or method would you use to ensure that a particular variable can be accessed by all programs in the project?

  • COMMON-LINKAGE section
  • EXPORT statement
  • External clause
  • Global clause
In COBOL, you can ensure that a variable is accessible by all programs in a project by defining it in the COMMON-LINKAGE section. This section contains variables that are shared among all programs in the project, allowing them to exchange data.
Add your answer
Loading...

Leave a comment

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