[Migrated content. Thread originally posted on 18 October 2011]Hello,
I am testing the lock behaviour on Visual COBOL .NET, using RM/COBOL indexed files, so I have written a small program that has two options: read a register and unlock it.
For my purpouses, I found that LOCK MODE AUTOMATIC fits the bill, but I haven't found a way reproduce the normal behaviour in RM/COBOL when I try to access the same row from two diferent programs at the same time. In RM, when I try to do that, one of the programs (the last who is accessing) stays waiting until the row has been released. How can I reproduce this in Visual COBOL?
I have tried with the EXTFH file, like follows:
LOCKTYPE = 1