r/cobol • u/Historical-Ease6859 • 1d ago
Anyone still using RM/COBOL-85 for DOS? Trying to integrate it with Python
I'm working on modernizing an old business system that still runs on RM/COBOL-85 5.01.01 for DOS. It's actually still being used in production every day.
We're running it under DOSBox-X, with multiple users accessing the same indexed .DAT files over SMB. It handles inventory, sales, and other business operations.
Replacing the whole system isn't really an option right now, so we're trying to gradually move some functionality to Python while keeping the COBOL applications running.
Currently, most of our integration between COBOL and Python is done through CSV files. We have readers and writers on both sides that exchange data this way. It works, and we've been using it for a while, but it's not exactly ideal. We'd like to find a more direct way for both systems to interact, without having to constantly export and import files.
We've made some progress on that. We built a Python reader for the RMKF indexed files, using the original COBOL FD definitions to interpret the records. We can also search by indexed keys, and we have a simple desktop viewer working.
Recently, we started experimenting with writing to these files as well. We managed to update an inventory field from Python in a test environment, but we're still trying to understand how safe this approach really is.
The main concerns are record locking, concurrent access, and what happens when COBOL already has a file open and Python modifies something. We're also looking into possible caching issues over SMB and how to recover from interrupted operations.
For now, all writing experiments are being done on test copies, not production files.
I'm curious if anyone here has worked with this particular version of RM/COBOL, or something similar.
Has anyone tried accessing RM/COBOL indexed files directly from another language? How did you deal with concurrent writes and locking? Did you run into any unexpected problems?
We're mostly interested in building our own integration tools rather than relying on additional commercial software or licenses.
I'd also love to know if anyone has come across useful documentation, old utilities, or open-source projects related to this.
I know RM/COBOL-85 for DOS is pretty old and probably not very common these days, but I'm hoping someone here has worked with it or dealt with similar integration challenges.
Thanks!
P.S. English isn't my first language, so I used some AI assistance to help write this post.

