This chapter provides an overview of file handling.
One of the main facilities that COBOL has to offer as a programming language is its built-in file handling capabilities. Files of sequential, relative and indexed organization can be handled using simple COBOL syntax.
In addition, Micro Focus COBOL offers the following file handling features:
| File Handling Feature | Use to... |
|---|---|
| Line sequential file organization | Access ASCII text files from your COBOL program |
| A set of COBOL system library routines | Manipulate files and directories |
| A set of COBOL system library routines | Handle files at the byte level |
| Fileshare | Access groups of files on network servers |
| A conversion module | Read from and write to Btrieve files (Net Express only) |
The Micro Focus File Handler, by default, performs all COBOL I/O operations on all the standard COBOL file organizations: sequential, relative and indexed files. In addition, you can use the File Handler's Applications Programming Interface (API) to call the File Handler directly from your COBOL program.