File Handling
File Handling Interview Questions
What is file handling in COBOL?
The process of file handling refers to how we access and store the data or info in a file with the help of a program.
What is a record in COBOL?
A record is a collection of related fields representing as a single entity. One or more fields together form a record.
What is file in COBOL?
A file is a collection of records given a name and permanently stores the data on secondary memory (e.g., DISKs, TAPEs).
Explain life cycle of a file in programming?
Below are the file processing statements -
- File Declaration
- OPEN File
- Processing file
- CLOSE File