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.
Loading...
Related Quiz
- In COBOL, what is the purpose of the "ENVIRONMENT DIVISION"?
- How can the FUNCTION LENGTH intrinsic function be used to determine the length of a string in COBOL?
- Which COBOL data type is commonly used to store date and time values?
- How does exclusive file locking differ from shared file locking in terms of access permissions?
- When using the EXTERNAL clause in COBOL, how can you ensure variable visibility across different programs?