Hie guys
I have a problem of one of my update funct that locks the file .
Iam using proiv version 4.0 running on unix platform and the file is an indexed file (cisam). It locks after reading the first oo record record.
Pliz assist.
regards
bp

file locking
Started by luwapula, Jul 11 2006 05:29 AM
6 replies to this topic
#2
Posted 11 July 2006 - 08:57 AM
Hi
I think you're going to have to clarify your problem a bit first.
Is it that the whole file is getting locked? Specific records? What's happening that you don't think should be?
FYI: A CISAM file will get the records locked as soon as you have read them in any mode other then 'L'ookup. The lock won't be released until the file write has completed.
Cheers
Mike
I think you're going to have to clarify your problem a bit first.
Is it that the whole file is getting locked? Specific records? What's happening that you don't think should be?
FYI: A CISAM file will get the records locked as soon as you have read them in any mode other then 'L'ookup. The lock won't be released until the file write has completed.
Cheers
Mike
#4
Posted 12 July 2006 - 11:21 AM
You mean that the update stops and waits with a 'RECORD LOCKED' message?
If that is the case then there is another function (probably a screen if the record isn't being released) which has that record open. You will need to find out which process that is and get the user to come out (or kill it if necessary and you feel it is safe).
If that is the case then there is another function (probably a screen if the record isn't being released) which has that record open. You will need to find out which process that is and get the user to come out (or kill it if necessary and you feel it is safe).
#7
Posted 13 July 2006 - 08:48 AM
Hi,
You should try enabling TRACEALL = 15, and see what the trace says, when it freezes....
Do a search for TRACEALL to see how to use it...
Rob D.
You should try enabling TRACEALL = 15, and see what the trace says, when it freezes....
Do a search for TRACEALL to see how to use it...
Rob D.
Reply to this topic

0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users