Skip to Content

Did you know you can create temporary files in memory?

Estimated Reading Time: < 1 Minute

Sometimes the COBOL application needs to store information on temporary files. These files are then deleted at the end of the elaboration or at the end of the runtime session.

Writing and reading these temporary files from the hard disk costs time. For this reason you might consider creating these files in memory to have faster access to them.

The attached sample program shows how to do so

Did you know you can create temporary files in memory?
  • Attached Files
  • tempfile.cbl (1.4 KB) 15