<<

Contents

Search

>>

 

HOLDLOCK

 

 

Instruction

 

 

Syntax:

HOLDLOCK = <Name of Index File> | ALL

 

<Name of Index File> = <INDEX FILE>

 

Meaning:

The currently read record from an Index File remains locked.

 

With the instruction HOLDLOCK <Name of Index File> or HOLDLOCK ALL the access to the last read data record of the Index File or all Index Files (ALL) remains locked to other users until the data record is unlocked again by a write access (WRITE), by UNLOCK or by reading another data record.

 

In SELECT locked records can only be represented by a line of question marks if the operating system does not allow the reading of locked data records. This does not apply to 2T programs since the Ebus-2T-Server locks the data records on its own and does not use any operating system functions for that.

 

Parameter:

Name of Index File

Name of Index File

 

Sample:

HOLDLOCK CUSTOMER

 

See also:

NOHOLDLOCK

READLOCK

NOREADLOCK

UNLOCK

NOUNLOCK