File locking

  • Mahesh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
19 years 3 months ago #2037 by Mahesh
File locking was created by Mahesh
How to lock a file? Does 'jchmod +N' actually lock the file? Or is there any other way to lock a file and prevent updations to it until it is released?

Please Log in or Create an account to join the conversation.

More
19 years 3 months ago #2038 by malai
Replied by malai on topic File locking
Hi Mahesh,

jchmod +N will set only the NETWORK flag to TRUE.

To lock a file use FILELOCK command.
_________________
M A L A I

Please Log in or Create an account to join the conversation.

More
19 years 3 months ago #2039 by takoor
Replied by takoor on topic File locking
use F.READ - that will lock the record. when you use F.WRITE it will release the lock or if you use the RELEASE statement in your routine.
_________________
takoor

Please Log in or Create an account to join the conversation.

More
19 years 3 months ago #2040 by malai
Replied by malai on topic File locking
Yea, you are right in case of locking a record in a file. But the question here is to lock the entire file.
_________________
M A L A I

Please Log in or Create an account to join the conversation.

More
19 years 3 months ago #2041 by takoor
Replied by takoor on topic File locking
oops.....
being blonde i forgot to read.....
_________________
takoor

Please Log in or Create an account to join the conversation.

More
19 years 3 months ago #2042 by takoor
Replied by takoor on topic File locking
oops.....
being blonde i forgot to read.....
_________________
takoor

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds