In COBOL, what is the difference between a data item defined in the WORKING-STORAGE section and a data item defined in the FILE SECTION?

  • Data items in the WORKING-STORAGE section are temporary, while those in the FILE SECTION are permanent
  • WORKING-STORAGE section is for data definitions, and FILE SECTION is for program logic
  • WORKING-STORAGE section is for input/output files, and FILE SECTION is for internal variables
  • WORKING-STORAGE section is for program logic, and FILE SECTION is for data definitions
The WORKING-STORAGE section in COBOL is used for variables that need to retain their values throughout the program execution, primarily for program logic. The FILE SECTION, on the other hand, is used for defining file-related data items and is not typically used for program logic.
Add your answer
Loading...

Leave a comment

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