11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LOCKViewing the Current LocksTo view a list of the current locks for your process, go to the <strong>Caché</strong> System ManagementPortal and select Locks. The Locks window displays a list of processes with the current locksfor each. Separate lock counts are maintained for Exclusive locks and Shared locks. You mayneed to use the Refresh option to view the most current list of locks.You can delete locks by clicking “Remove”, “Remove All Locks for Process”, or “Removeall Locks for Server” (at top of window). This gives you the option of deleting that lock,deleting all locks for the process, or deleting all locks for the server.ArgumentspcAn optional postconditional expression that can make the command conditional. <strong>Caché</strong> executesthe LOCK command if the postconditional expression is true (evaluates to a non-zeronumeric value). <strong>Caché</strong> does not execute the command if the postconditional expression isfalse (evaluates to zero). For further details, refer to Command Postconditional Expressionsin Using <strong>Caché</strong> <strong>ObjectScript</strong>.operThe lock operation indicator is used to apply or remove a lock. In a comma-separated list oflock names, each lock name must have its own lock operation indicator. The lock operationindicator can be one of the following values:No characterPlus sign (+)Minus sign (-)Apply a simple lock to a lock name and unlock all prior locks.Apply an incremental lock to a lock name.Remove a lock from a lock name.If the lock name has a lock count of 1, remove the lock from the lock table. If the lock namehas a lock count of more than 1, remove one of its incremental locks (decrement the lockcount). By default, this removes exclusive locks. To remove a shared lock, you must specifythe lock type specifying a shared lock. If your LOCK command contains multiple commaseparatedlock argument syntactical units, each lock argument can have its own lock operationindicator. <strong>Caché</strong> parses this as multiple LOCK commands; therefore a simple lock will deleteany locks created by a lock argument specified earlier in the command.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!