Please enable JavaScript to view this site.

A-Shell Reference

MAXLOCKS=##

Example:  MAXLOCKS=500

MAXLOCKS specifies the maximum number of locks (per job) that A-Shell will keep track of for enforcing the LOKSER rules on ISAMPLUS UPDATE'RECORD and DELETE'RECORD operations. According to the rules under AMOS, UPDATE'RECORD and DELETE'RECORD must only be used on records that were previously locked, and it uses the LOKSER lock queue to enforce this. A-Shell implements LOKSER via the natural locking facility of the native operating system, which does not permit it to easily scan the lock list. Thus it uses its own internal list to keep track of which records have been locked.

The default for MAXLOCKS is 100, which should be more than enough in most cases. The only likely reasons why you might want to override this would be if you wanted to disable the rule (i.e. allow unlocked records to be updated or deleted, even when LOKSER is on.), in which case you would specify MAXLOCKS=0, or if your application allowed a user to lock more than 100 records at a time, in which case specify an appropriately large number. The lock list requires 8 bytes per lock, and is allocated separately from the memory partition and thus does not subtract from any other specified allocation size.