You are working on a COBOL program that needs to store employee records with multiple fields like name, age, and salary. Which section of the COBOL Data Division would you use to define these data items?

  • FILE SECTION
  • LINKAGE SECTION
  • REPORT SECTION
  • WORKING-STORAGE SECTION
In a COBOL program, the WORKING-STORAGE SECTION is used to define variables and data items that are needed during the execution of the program. It is suitable for storing temporary data like employee records, ensuring they are retained throughout the program's execution.
Add your answer
Loading...

Leave a comment

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