EMPTY (empty a data file)

Top  Previous  Next

 

EMPTY(file)

EMPTY

Deletes all records from a FILE.

file

The label of a FILE.

EMPTY deletes all records from the specified file. EMPTY requires exclusive access to the file. Therefore, the file must be opened with access mode set to 12h (Read/Write Deny All) or 22h (Read/Write Deny Write).

Errors Posted:

37

File Not Open

63

Exclusive Access Required

Example:

OPEN(Master,18)     !Open the master file

EMPTY(Master)       !and start a new one

 

See Also:

OPEN

SHARE