Aalekhine68
15 pts. | Jan 18 2009 9:08AM GMT
Hi Phil,
Thank you for your answer.
Commitment control is not in use. And yes I have instructed someone to look at who is locking the record the moment it happens. The problem is I am not around when the record locks happen. And I am just disappointed at the people who are because they do not know what to do to determine the cause. What they do is ask the users to write defect reports and let these occurrences go. Oh well…
Also, the files do not share their data paths.
I am just curious about what happens if the session hangs. Are those codes that do not unlock the records and whose UPDATE statements are embedded in between If-EndIf statements holding locks indefinitely? I think this is a question for one of the experts like Barbara Morris, huh?
Philpl1jb
24610 pts. | Jan 19 2009 2:59AM GMT
since those programs are ending with *INLR *on the files are closed and the records are not locked.
The DBMS will wait for the length of time on the record wait variable on the file. If this is 1 sec then you might get time outs more frequently than if the file is set at 60 seconds.
Phil
Gilly400
23625 pts. | Jan 19 2009 12:33PM GMT
Hi,
What do you mean by “when the session hangs”? Do you mean that the job is being ended for some reason?
If for some reason a job is disconnected (someone cancels their emulation session for example) and the job doesn’t end - then the job will likely still have locks in place.
Another thing to look out for in your programs is the RETURN opcode or the *INRT indicator - if these are used before the *INLR is seton, then your files may stay open and locks may stay in place.
Regards,
Martin Gilbert.






