In COBOL, what is the purpose of the "ENVIRONMENT DIVISION"?

  • Contains the procedures and logic of the program
  • Declares the data items used in the program
  • Defines the working storage section
  • Specifies the file structure and access mode for all files used in the program
The "ENVIRONMENT DIVISION" in COBOL is responsible for specifying the file structure and access mode for all files used in the program. It sets up the environment for the program's execution by providing information about the files it will use.
Add your answer
Loading...

Leave a comment

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